Merge change 22702 into eclair
* changes: run the sync thread at background priority
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user