Merge "Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter."
This commit is contained in:
@@ -160,10 +160,13 @@ public abstract class AbstractThreadedSyncAdapter {
|
||||
if (mAutoInitialize
|
||||
&& extras != null
|
||||
&& extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false)) {
|
||||
if (ContentResolver.getIsSyncable(account, authority) < 0) {
|
||||
ContentResolver.setIsSyncable(account, authority, 1);
|
||||
try {
|
||||
if (ContentResolver.getIsSyncable(account, authority) < 0) {
|
||||
ContentResolver.setIsSyncable(account, authority, 1);
|
||||
}
|
||||
} finally {
|
||||
syncContextClient.onFinished(new SyncResult());
|
||||
}
|
||||
syncContextClient.onFinished(new SyncResult());
|
||||
return;
|
||||
}
|
||||
SyncThread syncThread = new SyncThread(
|
||||
|
||||
Reference in New Issue
Block a user