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

Commit a8cc20e5 authored by Erik's avatar Erik Committed by Android (Google) Code Review
Browse files

Merge "b/3004029 Fixed content resolver loss" into gingerbread

parents 344d9663 09bd4bf8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -206,11 +206,11 @@ public class CalendarUtils {

                // Update the db
                ContentValues values = new ContentValues();
                if (mHandler == null) {
                    mHandler = new AsyncTZHandler(context.getContentResolver());
                if (mHandler != null) {
                    mHandler.cancelOperation(mToken);
                }

                mHandler.cancelOperation(mToken);
                mHandler = new AsyncTZHandler(context.getContentResolver());

                // skip 0 so query can use it
                if (++mToken == 0) {