mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 07:22:45 +00:00
In-place default language swipe distance value
This commit is contained in:
parent
63651969a5
commit
b0b455774d
3 changed files with 5 additions and 9 deletions
|
@ -152,6 +152,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
|
||||
public static final String PREF_SPACE_TO_CHANGE_LANG = "prefs_long_press_keyboard_to_change_lang";
|
||||
public static final String PREF_LANGUAGE_SWIPE_DISTANCE = "language_swipe_distance";
|
||||
public static final int DEFAULT_LANGUAGE_SWIPE_DISTANCE = 10;
|
||||
|
||||
public static final String PREF_ENABLE_CLIPBOARD_HISTORY = "enable_clipboard_history";
|
||||
public static final String PREF_CLIPBOARD_HISTORY_RETENTION_TIME = "clipboard_history_retention_time";
|
||||
|
@ -457,7 +458,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
}
|
||||
|
||||
public static int readDefaultLanguageSwipeDistance(final Resources res) {
|
||||
return res.getInteger(R.integer.config_default_language_swipe_distance);
|
||||
return DEFAULT_LANGUAGE_SWIPE_DISTANCE;
|
||||
}
|
||||
|
||||
public static boolean readDeleteSwipeEnabled(final SharedPreferences prefs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue