Restart services on exact alarm changes

This commit is contained in:
M66B
2021-07-15 21:01:50 +02:00
parent 683dd0ebe8
commit f902b584f4
3 changed files with 17 additions and 9 deletions

View File

@@ -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");
}