diff options
-rw-r--r-- | src/com/android/settings/UserDictionarySettings.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index 6ffcb3d..8791e65 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java @@ -251,7 +251,9 @@ public class UserDictionarySettings extends ListActivity { // TODO: present UI for picking whether to add word to all locales, or current. UserDictionary.Words.addWord(this, word.toString(), 250, UserDictionary.Words.LOCALE_TYPE_ALL); - mCursor.requery(); + if (!mCursor.requery()) { + throw new IllegalStateException("can't requery on already-closed cursor."); + } mAddedWordAlready = true; } |