Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5296655 authored by Demon000's avatar Demon000 Committed by Sam Mortimer
Browse files

DeskClock: start foreground service for alarms

Change-Id: I8a539acf9a4422c4bf8d53b2239dd531fd3f655a
parent ae929ede
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1042,7 +1042,7 @@ public final class AlarmStateManager extends BroadcastReceiver {
                    createStateChangeIntent(context, ALARM_MANAGER_TAG, instance, newState);
            // Treat alarm state change as high priority, use foreground broadcasts
            stateChangeIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            PendingIntent pendingIntent = PendingIntent.getService(context, instance.hashCode(),
            PendingIntent pendingIntent = PendingIntent.getForegroundService(context, instance.hashCode(),
                    stateChangeIntent, PendingIntent.FLAG_UPDATE_CURRENT);

            final AlarmManager am = (AlarmManager) context.getSystemService(ALARM_SERVICE);