From ed95f35fdd009c73f5a42e42bec0e66303e995aa Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 6 Jan 2015 11:25:29 +0100 Subject: [PATCH] fix build for now --- .../osmand/plus/activities/search/SearchPOIActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index 0e58517087..ff61980ea2 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -807,10 +807,10 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa } //Looks like screenOrientation correction must not be applied for devices without compass? - private Sensor s = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); - if (s == null) { - screenOrientation = 0; - } + // Sensor s = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); + // if (s == null) { + // screenOrientation = 0; + // } draw.setAngle(mes[1] - a + 180 + screenOrientation);