aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java
diff options
context:
space:
mode:
authorTom Ouyang <ouyang@google.com>2012-05-29 10:09:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-29 10:09:29 -0700
commit126ed42415a4dc3841e8981a23cbe8a22a9e2213 (patch)
treea9c4196f43589772eefb1910f20f0fb65b66c22e /java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java
parentc074903330415ce304177e9d6e062b43d337e232 (diff)
parent1ed017ef0e271ed3f3c212def6cc6ba95b14e780 (diff)
downloadlatinime-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.java4
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.