summaryrefslogtreecommitdiff
path: root/src/com/android
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2014-01-16 15:26:44 -0800
committerJay Shrauner <shrauner@google.com>2014-01-16 15:26:44 -0800
commit964222de32bfb2ca0ff06b445bcb25c0bb936d2f (patch)
tree5fb01b3e548ab729d4c9f9b73f51e50a2a833b54 /src/com/android
parent070d7d0fae86d7498a25ccefdc78ac0d81c19d8e (diff)
Fix synchronization in onNotNullableQueryComplete
Synchronize onNotNullableQueryComplete to protect mCallLogCursor and mCallsRequestId. Bug:12591404 Change-Id: Ib1de73d2da0f14875a98b25113a132681da0beaa
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/dialer/calllog/CallLogQueryHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallLogQueryHandler.java b/src/com/android/dialer/calllog/CallLogQueryHandler.java
index def3c975b..39926767a 100644
--- a/src/com/android/dialer/calllog/CallLogQueryHandler.java
+++ b/src/com/android/dialer/calllog/CallLogQueryHandler.java
@@ -258,7 +258,7 @@ public class CallLogQueryHandler extends NoNullCursorAsyncQueryHandler {
}
@Override
- protected void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor) {
+ protected synchronized void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor) {
if (token == QUERY_CALLLOG_TOKEN) {
int requestId = ((Integer) cookie).intValue();
if (requestId != mCallsRequestId) {