nav settings mode selection fix
This commit is contained in:
parent
935d74df61
commit
af0c22d4f0
1 changed files with 11 additions and 5 deletions
|
@ -85,6 +85,16 @@ public class SettingsNavigationActivity extends SettingsBaseActivity {
|
|||
createUI();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
if(getIntent() != null && getIntent().hasExtra(INTENT_SKIP_DIALOG)) {
|
||||
setSelectedAppMode(settings.getApplicationMode());
|
||||
} else if (selectedAppMode == null) {
|
||||
selectAppModeDialog().show();
|
||||
}
|
||||
}
|
||||
|
||||
private void createUI() {
|
||||
addPreferencesFromResource(R.xml.navigation_settings);
|
||||
PreferenceScreen screen = getPreferenceScreen();
|
||||
|
@ -181,11 +191,7 @@ public class SettingsNavigationActivity extends SettingsBaseActivity {
|
|||
// registerListPreference(settings.DELAY_TO_START_NAVIGATION, screen, delayIntervalNames, delayIntervals);
|
||||
|
||||
|
||||
if(getIntent() != null && getIntent().hasExtra(INTENT_SKIP_DIALOG)) {
|
||||
setSelectedAppMode(settings.getApplicationMode());
|
||||
} else {
|
||||
selectAppModeDialog().show();
|
||||
}
|
||||
|
||||
|
||||
addVoicePrefs((PreferenceGroup) screen.findPreference("voice"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue