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

Commit 75d797c2 authored by Fred Quintana's avatar Fred Quintana
Browse files

run the sync thread at background priority

parent 4b474440
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -85,7 +85,6 @@ public abstract class AbstractThreadedSyncAdapter {
                    mSyncThread = new SyncThread(
                            "SyncAdapterThread-" + mNumSyncStarts.incrementAndGet(),
                            syncContextClient, authority, account, extras);
                    Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
                    mSyncThread.start();
                    alreadyInProgress = false;
                } else {
@@ -133,6 +132,8 @@ public abstract class AbstractThreadedSyncAdapter {
        }

        public void run() {
            Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);

            if (isCanceled()) {
                return;
            }