mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Restart services on exact alarm changes
This commit is contained in:
@@ -2710,8 +2710,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
.setAction("watchdog"));
|
||||
}
|
||||
|
||||
static void restart(Context context) {
|
||||
static void stop(Context context) {
|
||||
context.stopService(new Intent(context, ServiceSynchronize.class));
|
||||
}
|
||||
|
||||
static void restart(Context context) {
|
||||
stop(context);
|
||||
eval(context, "restart");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user