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

Unverified Commit d2402fe5 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽 Committed by Michael Bestas
Browse files

6430-t-Clear_notification_after_event_ends

Change-Id: I6f42957ff96c4797211febda36b6e667afcb20d5
parent c509b548
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -531,15 +531,13 @@ public class AlertService extends Service {
                int newState = -1;
                boolean newAlert = false;

                // Uncomment for the behavior of clearing out alerts after the
                // events ended. b/1880369
                //
                // if (endTime < currentTime) {
                //     newState = CalendarAlerts.DISMISSED;
                // } else
                // clearing out alerts after the events ended. b/1880369
                if (endTime < currentTime) {
                    newState = CalendarAlerts.STATE_DISMISSED;
                }

                // Remove declined events
                boolean sendAlert = !declined;
                boolean sendAlert = !declined  && newState != CalendarAlerts.STATE_DISMISSED;
                // Check for experimental reminder settings.
                if (remindRespondedOnly) {
                    // If the experimental setting is turned on, then only send