rename variable for readability

This commit is contained in:
sonora 2015-01-06 15:53:14 +01:00
parent 15e6c7d6fe
commit 5472efe072
2 changed files with 4 additions and 4 deletions

View file

@ -807,8 +807,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
}
//Looks like screenOrientation correction must not be applied for devices without compass?
Sensor s = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
if (s == null) {
Sensor compass = ((SensorManager) getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
if (compass == null) {
screenOrientation = 0;
}

View file

@ -206,8 +206,8 @@ public class DashFavoritesFragment extends DashBaseFragment {
}
//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);
if (s == null) {
Sensor compass = ((SensorManager) getActivity().getSystemService(Context.SENSOR_SERVICE)).getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
if (compass == null) {
screenOrientation = 0;
}