fix build for now
This commit is contained in:
parent
0f7fddeae0
commit
ed95f35fdd
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue