aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-20 06:40:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-20 06:40:46 +0000
commitad2cf220a9f05d0cee8670ebc9f963daa788cf85 (patch)
tree30ef120bae4bbe476a97bf8a50e7bd513590b17d /java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java
parent251ed3b358693d06f60fb87914f8b3955f077429 (diff)
parentc44b7312ad60c76ddd1c303d10b4f8e66ea9e605 (diff)
downloadlatinime-ad2cf220a9f05d0cee8670ebc9f963daa788cf85.tar.gz
latinime-ad2cf220a9f05d0cee8670ebc9f963daa788cf85.tar.xz
latinime-ad2cf220a9f05d0cee8670ebc9f963daa788cf85.zip
Merge "Remove a call to a deprecated method"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java')
-rw-r--r--java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java
index 220efb5d3..cf2014a1a 100644
--- a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java
+++ b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java
@@ -141,7 +141,10 @@ public class UserDictionarySettings extends ListFragment {
mLocale = locale;
// WARNING: The following cursor is never closed! TODO: don't put that in a member, and
- // make sure all cursors are correctly closed.
+ // make sure all cursors are correctly closed. Also, this comes from a call to
+ // Activity#managedQuery, which has been deprecated for a long time (and which FORBIDS
+ // closing the cursor, so take care when resolving this TODO). We should either use a
+ // regular query and close the cursor, or switch to a LoaderManager and a CursorLoader.
mCursor = createCursor(locale);
TextView emptyView = (TextView) getView().findViewById(android.R.id.empty);
emptyView.setText(R.string.user_dict_settings_empty_text);