Code cleanup for enable and disable google sync

This commit is contained in:
Jimmy Shih
2014-01-08 14:05:31 -08:00
parent 071e33719e
commit 7f124aa76b
6 changed files with 49 additions and 55 deletions
@@ -91,10 +91,7 @@ public class DeleteAsyncTask extends AsyncTask<Void, Integer, Boolean> {
} catch (InterruptedException e) {
return false;
}
PreferencesUtils.setBoolean(
context, R.string.drive_sync_key, PreferencesUtils.DRIVE_SYNC_DEFAULT);
SyncUtils.disableSync(context);
SyncUtils.clearSyncState(context);
myTracksProviderUtils.deleteAllTracks(context);
return true;
} else {