From 0b0a686281a8b06ec1c669acbd7e4467acf8906d Mon Sep 17 00:00:00 2001 From: Yohei Fujii Date: Wed, 11 Aug 2010 20:50:20 +0900 Subject: [PATCH] add new preference for popup preview this option is disabled as the default at x-large Bug:2909517 Change-Id: Ifda1b7ff89bc4beeee02ba0f3e01d441a9435b37 --- java/res/values-xlarge/bools.xml | 23 +++++++++++++++++++ java/res/values/bools.xml | 2 ++ java/res/values/strings.xml | 3 +++ java/res/xml/prefs.xml | 7 ++++++ .../android/inputmethod/latin/LatinIME.java | 5 ++++ 5 files changed, 40 insertions(+) create mode 100644 java/res/values-xlarge/bools.xml diff --git a/java/res/values-xlarge/bools.xml b/java/res/values-xlarge/bools.xml new file mode 100644 index 000000000..fe8fc5838 --- /dev/null +++ b/java/res/values-xlarge/bools.xml @@ -0,0 +1,23 @@ + + + + + false + diff --git a/java/res/values/bools.xml b/java/res/values/bools.xml index a0cebbb94..f5f2c3d0e 100644 --- a/java/res/values/bools.xml +++ b/java/res/values/bools.xml @@ -26,4 +26,6 @@ true true + + true diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index e77155d50..d2166f7f5 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -29,6 +29,9 @@ Sound on keypress + + Popup on keypress + Correct typing errors diff --git a/java/res/xml/prefs.xml b/java/res/xml/prefs.xml index e4c689aa8..11cc3ac42 100644 --- a/java/res/xml/prefs.xml +++ b/java/res/xml/prefs.xml @@ -30,6 +30,13 @@ android:persistent="true" /> + + 0 || mShowSuggestions); checkTutorial(attribute.privateImeOptions); @@ -2295,6 +2298,7 @@ public class LatinIME extends InputMethodService SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); mVibrateOn = sp.getBoolean(PREF_VIBRATE_ON, false); mSoundOn = sp.getBoolean(PREF_SOUND_ON, false); + mPopupOn = sp.getBoolean(PREF_POPUP_ON, true); mAutoCap = sp.getBoolean(PREF_AUTO_CAP, true); mQuickFixes = sp.getBoolean(PREF_QUICK_FIXES, true); mHasUsedVoiceInput = sp.getBoolean(PREF_HAS_USED_VOICE_INPUT, false); @@ -2421,6 +2425,7 @@ public class LatinIME extends InputMethodService p.println(" TextEntryState.state=" + TextEntryState.getState()); p.println(" mSoundOn=" + mSoundOn); p.println(" mVibrateOn=" + mVibrateOn); + p.println(" mPopupOn=" + mPopupOn); } // Characters per second measurement