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

Commit f313e958 authored by Alon Albert's avatar Alon Albert Committed by Android (Google) Code Review
Browse files

Merge "Move handing of a "cancel" inside try-finally block"

parents 7da5fd29 9257ec05
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -191,13 +191,12 @@ public abstract class AbstractThreadedSyncAdapter {
        public void run() {
            Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);

            if (isCanceled()) {
                return;
            }

            SyncResult syncResult = new SyncResult();
            ContentProviderClient provider = null;
            try {
                if (isCanceled()) {
                    return;
                }
                provider = mContext.getContentResolver().acquireContentProviderClient(mAuthority);
                if (provider != null) {
                    AbstractThreadedSyncAdapter.this.onPerformSync(mAccount, mExtras,