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

Commit 0831bf4f authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

6430-t-Clear_notification_after_event_ends

parent 7fb32750
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -526,15 +526,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