Merge change 22702 into eclair

* changes:
  run the sync thread at background priority
This commit is contained in:
Android (Google) Code Review
2009-08-25 17:42:26 -07:00

View File

@@ -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;
}