Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5b2bee22b7
3 changed files with 5 additions and 2 deletions
|
@ -174,7 +174,7 @@ public class ApplicationMode {
|
|||
}
|
||||
|
||||
public static List<ApplicationMode> allPossibleValues(OsmandSettings settings) {
|
||||
return values;
|
||||
return new ArrayList<ApplicationMode>(values);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -311,6 +311,7 @@ public abstract class SettingsBaseActivity extends SherlockPreferenceActivity im
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
if(selected.size() > 0) {
|
||||
// test
|
||||
setSelectedAppMode(selected.iterator().next());
|
||||
}
|
||||
if(profileDialog != null && profileDialog.isShowing()) {
|
||||
|
|
|
@ -373,7 +373,9 @@ public class NavigateAction {
|
|||
if(!showDefault) {
|
||||
values.remove(ApplicationMode.DEFAULT);
|
||||
}
|
||||
selected.add(settings.getApplicationMode());
|
||||
if (showDefault || settings.getApplicationMode() != ApplicationMode.DEFAULT) {
|
||||
selected.add(settings.getApplicationMode());
|
||||
}
|
||||
return prepareAppModeView(a, values, selected, parent, singleSelection, onClickListener);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue