Fix compass issue
This commit is contained in:
parent
5e2268a069
commit
2863d06d42
3 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,8 @@
|
||||||
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
|
<string name="use_magnetic_sensor_descr">Use magnetic sensor to determine compass value instead of orientation sensor</string>
|
||||||
|
<string name="use_magnetic_sensor">Use magnetic sensor (compass)</string>
|
||||||
<string name="other_location">Other</string>
|
<string name="other_location">Other</string>
|
||||||
<string name="files_limit">%1$d files left</string>
|
<string name="files_limit">%1$d files left</string>
|
||||||
<string name="available_downloads_left">Available %1$d files to download</string>
|
<string name="available_downloads_left">Available %1$d files to download</string>
|
||||||
|
|
|
@ -285,9 +285,6 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
break;
|
break;
|
||||||
case Sensor.TYPE_ORIENTATION:
|
case Sensor.TYPE_ORIENTATION:
|
||||||
val = event.values[0];
|
val = event.values[0];
|
||||||
if (USE_MAGNETIC_FIELD_SENSOR_COMPASS.get()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -113,6 +113,8 @@ public class SettingsGeneralActivity extends SettingsBaseActivity {
|
||||||
screen.addPreference(applicationDir);
|
screen.addPreference(applicationDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
screen.addPreference(createCheckBoxPreference(settings.USE_MAGNETIC_FIELD_SENSOR_COMPASS, R.string.use_magnetic_sensor, R.string.use_magnetic_sensor_descr));
|
||||||
|
|
||||||
registerBooleanPreference(settings.USE_ENGLISH_NAMES, screen);
|
registerBooleanPreference(settings.USE_ENGLISH_NAMES, screen);
|
||||||
registerBooleanPreference(settings.LEFT_SIDE_NAVIGATION, screen);
|
registerBooleanPreference(settings.LEFT_SIDE_NAVIGATION, screen);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue