rename variable for readability
This commit is contained in:
parent
15e6c7d6fe
commit
5472efe072
2 changed files with 4 additions and 4 deletions
|
@ -807,8 +807,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
}
|
}
|
||||||
|
|
||||||
//Looks like screenOrientation correction must not be applied for devices without compass?
|
//Looks like screenOrientation correction must not be applied for devices without compass?
|
||||||
Sensor s = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
|
Sensor compass = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
|
||||||
if (s == null) {
|
if (compass == null) {
|
||||||
screenOrientation = 0;
|
screenOrientation = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -206,8 +206,8 @@ public class DashFavoritesFragment extends DashBaseFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Looks like screenOrientation correction must not be applied for devices without compass?
|
//Looks like screenOrientation correction must not be applied for devices without compass?
|
||||||
Sensor s = ((SensorManager) getActivity().getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
|
Sensor compass = ((SensorManager) getActivity().getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
|
||||||
if (s == null) {
|
if (compass == null) {
|
||||||
screenOrientation = 0;
|
screenOrientation = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue