diff options
author | 2014-02-19 22:42:05 -0800 | |
---|---|---|
committer | 2014-02-19 22:42:05 -0800 | |
commit | 88a522cf9b92f8482dcc3acc121bae41e89176e3 (patch) | |
tree | 6ee48ae73edacb02334d3577ae99c3aed2601a2f /java/src/com/android/inputmethod/latin/userdictionary/UserDictionarySettings.java | |
parent | 93562fc0df482cc49efc6630a94b41f59e9be450 (diff) | |
parent | ad2cf220a9f05d0cee8670ebc9f963daa788cf85 (diff) | |
download | latinime-88a522cf9b92f8482dcc3acc121bae41e89176e3.tar.gz latinime-88a522cf9b92f8482dcc3acc121bae41e89176e3.tar.xz latinime-88a522cf9b92f8482dcc3acc121bae41e89176e3.zip |
am ad2cf220: Merge "Remove a call to a deprecated method"
* commit 'ad2cf220a9f05d0cee8670ebc9f963daa788cf85':
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.java | 5 |
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); |