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

@@ -800,6 +800,10 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
}
}
static void stop(Context context) {
context.stopService(new Intent(context, ServiceSend.class));
}
static void schedule(Context context, long delay) {
Intent intent = new Intent(context, ServiceSend.class);
PendingIntent pi = PendingIntentCompat.getForegroundService(