diff options
author | 2013-07-04 21:06:04 +0900 | |
---|---|---|
committer | 2013-07-04 21:06:04 +0900 | |
commit | edd1992ed329a84f0e9ef7056fda99f78eeb92b4 (patch) | |
tree | 5c541da1058b44a4773ae02a4934ec4b371f2ac3 /java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java | |
parent | 24025135562791d3f569e39509425b4c9624e310 (diff) | |
download | latinime-edd1992ed329a84f0e9ef7056fda99f78eeb92b4.tar.gz latinime-edd1992ed329a84f0e9ef7056fda99f78eeb92b4.tar.xz latinime-edd1992ed329a84f0e9ef7056fda99f78eeb92b4.zip |
DictionaryWriter to abstract binary dictionary writing.
UserHistoryDictionary should become to use ExpandableBinaryDictionary.
Bug: 6669677
Change-Id: I6831c7dd2d84207d1a8f51ba15d52e0a72205d0c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java index 110be9db3..c99d0e2ea 100644 --- a/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java @@ -109,7 +109,6 @@ public class ContactsBinaryDictionary extends ExpandableBinaryDictionary { @Override public void loadDictionaryAsync() { - clearFusionDictionary(); loadDeviceAccountsEmailAddresses(); loadDictionaryAsyncForUri(ContactsContract.Profile.CONTENT_URI); // TODO: Switch this URL to the newer ContactsContract too @@ -236,6 +235,11 @@ public class ContactsBinaryDictionary extends ExpandableBinaryDictionary { } @Override + protected boolean needsToReloadBeforeWriting() { + return true; + } + + @Override protected boolean hasContentChanged() { final long startTime = SystemClock.uptimeMillis(); final int contactCount = getContactCount(); |