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

Commit 789950be authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update internal change-of-date alarm whenever timezone changes"

parents c8c634f3 a4618b02
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1462,6 +1462,10 @@ class AlarmManagerService extends SystemService {
        TimeZone.setDefault(null);

        if (timeZoneWasChanged) {
            // Don't wait for broadcasts to update our midnight alarm
            mClockReceiver.scheduleDateChangedEvent();

            // And now let everyone else know
            Intent intent = new Intent(Intent.ACTION_TIMEZONE_CHANGED);
            intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
                    | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND