Fix SecurityException on Android 6 due to remove contacts on disabled sync
This commit is contained in:
@@ -67,7 +67,7 @@ public abstract class BaseActivity extends AppCompatActivity {
|
||||
|
||||
public static void onResumeChecks(Context context) {
|
||||
KeyserverSyncAdapterService.cancelUpdates(context);
|
||||
// in case user has disabled sync from settings
|
||||
// in case user has disabled sync from Android account settings
|
||||
ContactSyncAdapterService.deleteIfSyncDisabled(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user