Skip to content

Commit

Permalink
LatinIME: fix default gesture input
Browse files Browse the repository at this point in the history
Read the default value from config otherwise the user needs to view the settings
page before the default takes effect

Change-Id: I5adba31bc787d4d3211e840c04f233835a7284fd
  • Loading branch information
emancebo authored and B--B committed Apr 3, 2017
1 parent 9038af0 commit f38fb24
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -240,8 +240,10 @@ public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources r

public static boolean readGestureInputEnabled(final SharedPreferences prefs,
final Resources res) {
boolean defaultGestureInput =
res.getBoolean(R.bool.config_gesture_input_default_value);
return readFromBuildConfigIfGestureInputEnabled(res)
&& prefs.getBoolean(PREF_GESTURE_INPUT, true);
&& prefs.getBoolean(PREF_GESTURE_INPUT, defaultGestureInput);
}

public static boolean readFromBuildConfigIfToShowKeyPreviewPopupOption(final Resources res) {
Expand Down

0 comments on commit f38fb24

Please sign in to comment.