Added account/identity delete

This commit is contained in:
M66B
2018-08-07 19:35:21 +00:00
parent 847db6be1f
commit d3ed9271ab
8 changed files with 106 additions and 0 deletions

View File

@@ -1254,6 +1254,11 @@ public class ServiceSynchronize extends LifecycleService {
ContextCompat.startForegroundService(context, new Intent(context, ServiceSynchronize.class));
}
public static void stop(Context context, String reason) {
Log.i(Helper.TAG, "Stop because of '" + reason + "'");
context.stopService(new Intent(context, ServiceSynchronize.class));
}
public static void restart(Context context, String reason) {
Log.i(Helper.TAG, "Restart because of '" + reason + "'");
context.stopService(new Intent(context, ServiceSynchronize.class));