mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Added account/identity delete
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user