am 381bc383: am 16c758fb: Merge change 22702 into eclair

Merge commit '381bc38355ae05efee92d369076b3228969c0e1d'

* commit '381bc38355ae05efee92d369076b3228969c0e1d':
  run the sync thread at background priority
This commit is contained in:
Fred Quintana
2009-08-25 17:46:11 -07:00
committed by Android Git Automerger

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