Do not switch profiles automatically

This commit is contained in:
Victor Shcherb 2011-05-18 23:51:10 +02:00
parent f1cafb0c4c
commit 00fbaef2d6

View file

@ -83,10 +83,10 @@ public class OsmandSettings {
defaultProfilePreferences = getProfilePreferences(ApplicationMode.DEFAULT); defaultProfilePreferences = getProfilePreferences(ApplicationMode.DEFAULT);
profilePreferences = defaultProfilePreferences; profilePreferences = defaultProfilePreferences;
if(FOLLOW_TO_THE_ROUTE.get()){ // if(FOLLOW_TO_THE_ROUTE.get()){
currentMode = readApplicationMode(); currentMode = readApplicationMode();
profilePreferences = getProfilePreferences(currentMode); profilePreferences = getProfilePreferences(currentMode);
} // }
} }
private SharedPreferences getProfilePreferences(ApplicationMode mode){ private SharedPreferences getProfilePreferences(ApplicationMode mode){