diff options
author | 2013-12-18 20:50:05 -0800 | |
---|---|---|
committer | 2013-12-18 20:50:05 -0800 | |
commit | 15732a7280f10d0103619316f3db6a71156c91d1 (patch) | |
tree | e221f448c62723057528d8762a0727b681ee85a5 /java/src | |
parent | 08f9d25acc13bfea5a734aa98dcd91fa5c860a54 (diff) | |
parent | 553fd66270faec1e4a48b64a522074763c56024f (diff) | |
download | latinime-15732a7280f10d0103619316f3db6a71156c91d1.tar.gz latinime-15732a7280f10d0103619316f3db6a71156c91d1.tar.xz latinime-15732a7280f10d0103619316f3db6a71156c91d1.zip |
am 553fd662: Merge "Add some info to test crashes to help diagnose flakiness"
* commit '553fd66270faec1e4a48b64a522074763c56024f':
Add some info to test crashes to help diagnose flakiness
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 67b570277..4b38c8871 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -3253,8 +3253,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // TODO: can this be removed somehow without breaking the tests? @UsedForTesting - /* package for test */ String getFirstSuggestedWord() { - return mSuggestedWords.size() > 0 ? mSuggestedWords.getWord(0) : null; + /* package for test */ SuggestedWords getSuggestedWords() { + // You may not use this method for anything else than debug + return DEBUG ? mSuggestedWords : null; } // DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME. @@ -3263,12 +3264,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen return mSuggest.isCurrentlyWaitingForMainDictionary(); } - // DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME. - @UsedForTesting - /* package for test */ boolean hasMainDictionary() { - return mSuggest.hasMainDictionary(); - } - // DO NOT USE THIS for any other purpose than testing. This can break the keyboard badly. @UsedForTesting /* package for test */ void replaceMainDictionaryForTest(final Locale locale) { |