From 964222de32bfb2ca0ff06b445bcb25c0bb936d2f Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Thu, 16 Jan 2014 15:26:44 -0800 Subject: Fix synchronization in onNotNullableQueryComplete Synchronize onNotNullableQueryComplete to protect mCallLogCursor and mCallsRequestId. Bug:12591404 Change-Id: Ib1de73d2da0f14875a98b25113a132681da0beaa --- src/com/android/dialer/calllog/CallLogQueryHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android') 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) { -- cgit v1.2.3