[android] Disable My Position button by default to avoid wrong centering on first startup

This commit is contained in:
Alex Zolotarev 2012-02-13 19:57:55 +03:00 committed by Alex Zolotarev
parent 6ae8b3c3cd
commit 5c074f0b83

View file

@ -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);
}