aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-08-30 14:56:49 +0900
committersatok <satok@google.com>2010-08-30 14:56:49 +0900
commitcb6221257a2f4025c91de4d65f5591e6563c54ce (patch)
tree07f09c4ac8aeeb3fec33f1c988749c1238f3ca6b /java
parent06123e56912b5dcd7aca3d0c18c7ceb1f1cde573 (diff)
downloadlatinime-cb6221257a2f4025c91de4d65f5591e6563c54ce.tar.gz
latinime-cb6221257a2f4025c91de4d65f5591e6563c54ce.tar.xz
latinime-cb6221257a2f4025c91de4d65f5591e6563c54ce.zip
DO NOT MERGE. Remove a preference for bigram suggestion
Change-Id: I1a9142d988352abf88da5eefe1d02596c7fc2beb
Diffstat (limited to 'java')
-rw-r--r--java/res/xml/prefs.xml9
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
2 files changed, 5 insertions, 12 deletions
diff --git a/java/res/xml/prefs.xml b/java/res/xml/prefs.xml
index 11cc3ac42..c48b80a5d 100644
--- a/java/res/xml/prefs.xml
+++ b/java/res/xml/prefs.xml
@@ -105,15 +105,6 @@
android:defaultValue="@bool/enable_autocorrect"
android:dependency="show_suggestions"
/>
-
- <CheckBoxPreference
- android:key="bigram_suggestion"
- android:title="@string/bigram_suggestion"
- android:summary="@string/bigram_suggestion_summary"
- android:persistent="true"
- android:defaultValue="true"
- android:dependency="auto_complete"
- />
</PreferenceCategory>
<CheckBoxPreference
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 37ae43d38..f26cbc059 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -94,7 +94,7 @@ public class LatinIME extends InputMethodService
private static final String PREF_QUICK_FIXES = "quick_fixes";
private static final String PREF_SHOW_SUGGESTIONS = "show_suggestions";
private static final String PREF_AUTO_COMPLETE = "auto_complete";
- private static final String PREF_BIGRAM_SUGGESTIONS = "bigram_suggestion";
+ //private static final String PREF_BIGRAM_SUGGESTIONS = "bigram_suggestion";
private static final String PREF_VOICE_MODE = "voice_mode";
// Whether or not the user has used voice input before (and thus, whether to show the
@@ -193,7 +193,8 @@ public class LatinIME extends InputMethodService
private boolean mAutoSpace;
private boolean mJustAddedAutoSpace;
private boolean mAutoCorrectEnabled;
- private boolean mBigramSuggestionEnabled;
+ // Bigram Suggestion is disabled in this version.
+ private final boolean mBigramSuggestionEnabled = false;
private boolean mAutoCorrectOn;
// TODO move this state variable outside LatinIME
private boolean mCapsLock;
@@ -2356,7 +2357,8 @@ public class LatinIME extends InputMethodService
}
mAutoCorrectEnabled = sp.getBoolean(PREF_AUTO_COMPLETE,
mResources.getBoolean(R.bool.enable_autocorrect)) & mShowSuggestions;
- mBigramSuggestionEnabled = sp.getBoolean(PREF_BIGRAM_SUGGESTIONS, true) & mShowSuggestions;
+ //mBigramSuggestionEnabled = sp.getBoolean(
+ // PREF_BIGRAM_SUGGESTIONS, true) & mShowSuggestions;
updateCorrectionMode();
updateAutoTextEnabled(mResources.getConfiguration().locale);
mLanguageSwitcher.loadLocales(sp);