Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ac2ff95 authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Fix synchronization in onNotNullableQueryComplete

Synchronize onNotNullableQueryComplete to protect mCallLogCursor
and mCallsRequestId.

Bug:12591404
Change-Id: Ib1de73d2da0f14875a98b25113a132681da0beaa
(cherry picked from commit 964222de)
parent b0b153f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {