summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-12-09 16:52:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-12-09 16:52:12 +0000
commitd8e1e9a22c2280c0dae3fafa423126fd3d073989 (patch)
tree5c4a3ced3bfd9b19d4008bbae3d820f3133ff552 /InCallUI
parentaccf2d994f505dbeda1fe4a33b90a53cafda34e4 (diff)
parenta6896116a51700ce134d801c632dea6a21f5d936 (diff)
Merge "Fix for Google Caller ID not working" into ub-contactsdialer-b-dev
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
index 3467684f5..bf254c605 100644
--- a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
+++ b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java
@@ -409,6 +409,9 @@ public class CallerInfoAsyncQuery {
long[] directoryIds = getDirectoryIds(context);
int size = directoryIds.length;
if (size == 0) {
+ if (listener != null) {
+ listener.onQueryComplete(token, cookie, info);
+ }
return;
}
@@ -464,13 +467,13 @@ public class CallerInfoAsyncQuery {
private static final class DirectoryQueryCompleteListener implements OnQueryCompleteListener {
int mCount;
- boolean mIsListernerCalled;
+ boolean mIsListenerCalled;
OnQueryCompleteListener mListener;
DirectoryQueryCompleteListener(int size, OnQueryCompleteListener listener) {
mCount = size;
mListener = listener;
- mIsListernerCalled = false;
+ mIsListenerCalled = false;
}
@Override
@@ -478,8 +481,8 @@ public class CallerInfoAsyncQuery {
boolean shouldCallListener = false;
synchronized (this) {
mCount = mCount - 1;
- if (!mIsListernerCalled && (ci.contactExists || mCount == 0)) {
- mIsListernerCalled = true;
+ if (!mIsListenerCalled && (ci.contactExists || mCount == 0)) {
+ mIsListenerCalled = true;
shouldCallListener = true;
}
}