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

Commit 5812a3fd authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Merge branch '6430-s-Clear_notification_after_event_ends' into 'v1-s'

6430-s-Clear_notification_after_event_ends

See merge request !56
parents fea4e0a8 19a214a1
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -529,15 +529,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