From 7822aec3831bd67dd1d47033d387328224d4350b Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 24 Sep 2009 17:13:50 -0700 Subject: [PATCH] Run sync threads in background priority (helps with #2126515) * Seems to improve UI responsiveness while doing large syncs, but it can still slow down quite a bit Change-Id: I539b8a9a96a922d810fba02ff4093759489a8153 --- src/com/android/exchange/EasSyncService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java index 8bd3fc8c8..6238547c4 100644 --- a/src/com/android/exchange/EasSyncService.java +++ b/src/com/android/exchange/EasSyncService.java @@ -1032,6 +1032,7 @@ public class EasSyncService extends AbstractSyncService { mMailbox = Mailbox.restoreMailboxWithId(mContext, mMailbox.mId); mThread = Thread.currentThread(); + android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND); TAG = mThread.getName(); HostAuth ha = HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv);