diff options
author | 2012-05-29 10:09:29 -0700 | |
---|---|---|
committer | 2012-05-29 10:09:29 -0700 | |
commit | 126ed42415a4dc3841e8981a23cbe8a22a9e2213 (patch) | |
tree | a9c4196f43589772eefb1910f20f0fb65b66c22e /java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java | |
parent | c074903330415ce304177e9d6e062b43d337e232 (diff) | |
parent | 1ed017ef0e271ed3f3c212def6cc6ba95b14e780 (diff) | |
download | latinime-126ed42415a4dc3841e8981a23cbe8a22a9e2213.tar.gz latinime-126ed42415a4dc3841e8981a23cbe8a22a9e2213.tar.xz latinime-126ed42415a4dc3841e8981a23cbe8a22a9e2213.zip |
am 1ed017ef: Fix performance issue when there are no contacts in the dictionary dictionary.
* commit '1ed017ef0e271ed3f3c212def6cc6ba95b14e780':
Fix performance issue when there are no contacts in the dictionary dictionary.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java index 0a09c845e..34308dfb3 100644 --- a/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java @@ -214,6 +214,10 @@ public class ContactsBinaryDictionary extends ExpandableBinaryDictionary { return false; } if (contactCount != sContactCountAtLastRebuild) { + if (DEBUG) { + Log.d(TAG, "Contact count changed: " + sContactCountAtLastRebuild + " to " + + contactCount); + } return true; } // Check all contacts since it's not possible to find out which names have changed. |