Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88d8353d authored by emancebo's avatar emancebo Committed by Ed Mancebo
Browse files

LatinIME: fix default gesture input

Read the default value from config otherwise the user needs to view the settings
page before the default takes effect

Change-Id: I5adba31bc787d4d3211e840c04f233835a7284fd
(cherry picked from commit 01e9147a)
parent 460c63dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -243,8 +243,10 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang

    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 readPhraseGestureEnabled(final SharedPreferences prefs,