forked from organicmaps/organicmaps
[android] Disable My Position button by default to avoid wrong centering on first startup
This commit is contained in:
parent
6ae8b3c3cd
commit
5c074f0b83
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ public class MWMActivity extends NvEventQueueActivity implements
|
|||
super.onStart();
|
||||
// Restore My Position state on startup/activity recreation
|
||||
SharedPreferences prefs = getSharedPreferences(PACKAGE_NAME, MODE_PRIVATE);
|
||||
final boolean isMyPositionEnabled = prefs.getBoolean(PREFERENCES_MYPOSITION, true);
|
||||
final boolean isMyPositionEnabled = prefs.getBoolean(PREFERENCES_MYPOSITION, false);
|
||||
findViewById(R.id.map_button_myposition).setSelected(isMyPositionEnabled);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue