Add preference dependency to gesture input related options
Bug: 8613600 Change-Id: I279d3264080aede59203205c45763c7f8ff08ae6
This commit is contained in:
parent
e2af9b7eb5
commit
29105a725d
2 changed files with 2 additions and 4 deletions
|
@ -93,12 +93,14 @@
|
||||||
<!-- TODO: Move these two options to the advanced settings. -->
|
<!-- TODO: Move these two options to the advanced settings. -->
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="pref_gesture_floating_preview_text"
|
android:key="pref_gesture_floating_preview_text"
|
||||||
|
android:dependency="gesture_input"
|
||||||
android:title="@string/gesture_floating_preview_text"
|
android:title="@string/gesture_floating_preview_text"
|
||||||
android:summary="@string/gesture_floating_preview_text_summary"
|
android:summary="@string/gesture_floating_preview_text_summary"
|
||||||
android:persistent="true"
|
android:persistent="true"
|
||||||
android:defaultValue="true" />
|
android:defaultValue="true" />
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="pref_gesture_preview_trail"
|
android:key="pref_gesture_preview_trail"
|
||||||
|
android:dependency="gesture_input"
|
||||||
android:title="@string/gesture_preview_trail"
|
android:title="@string/gesture_preview_trail"
|
||||||
android:persistent="true"
|
android:persistent="true"
|
||||||
android:defaultValue="true" />
|
android:defaultValue="true" />
|
||||||
|
|
|
@ -232,10 +232,6 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
||||||
} else if (key.equals(Settings.PREF_SHOW_LANGUAGE_SWITCH_KEY)) {
|
} else if (key.equals(Settings.PREF_SHOW_LANGUAGE_SWITCH_KEY)) {
|
||||||
setPreferenceEnabled(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST,
|
setPreferenceEnabled(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST,
|
||||||
Settings.readShowsLanguageSwitchKey(prefs));
|
Settings.readShowsLanguageSwitchKey(prefs));
|
||||||
} else if (key.equals(Settings.PREF_GESTURE_INPUT)) {
|
|
||||||
final boolean gestureInputEnabled = Settings.readGestureInputEnabled(prefs, res);
|
|
||||||
setPreferenceEnabled(Settings.PREF_GESTURE_PREVIEW_TRAIL, gestureInputEnabled);
|
|
||||||
setPreferenceEnabled(Settings.PREF_GESTURE_FLOATING_PREVIEW_TEXT, gestureInputEnabled);
|
|
||||||
} else if (key.equals(Settings.PREF_SHOW_SETUP_WIZARD_ICON)) {
|
} else if (key.equals(Settings.PREF_SHOW_SETUP_WIZARD_ICON)) {
|
||||||
LauncherIconVisibilityManager.updateSetupWizardIconVisibility(getActivity());
|
LauncherIconVisibilityManager.updateSetupWizardIconVisibility(getActivity());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue