Loading src/com/android/settings/inputmethod/UserDictionaryCursorLoader.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -94,6 +94,8 @@ public class UserDictionaryCursorLoader extends CursorLoader { hashSet.add(hash); hashSet.add(hash); result.addRow(new Object[]{id, word, shortcut}); result.addRow(new Object[]{id, word, shortcut}); } } // The cursor needs to be closed after use, otherwise it will cause resource leakage candidate.close(); return result; return result; } } } } Loading
src/com/android/settings/inputmethod/UserDictionaryCursorLoader.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -94,6 +94,8 @@ public class UserDictionaryCursorLoader extends CursorLoader { hashSet.add(hash); hashSet.add(hash); result.addRow(new Object[]{id, word, shortcut}); result.addRow(new Object[]{id, word, shortcut}); } } // The cursor needs to be closed after use, otherwise it will cause resource leakage candidate.close(); return result; return result; } } } }