Skip to content

Commit

Permalink
6430-t-Clear_notification_after_event_ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Fahim Salam Chowdhury authored and Gitsaibot committed Nov 6, 2024
1 parent 4ae4e6a commit 611b1a5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/main/java/com/android/calendar/alerts/AlertService.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,15 +531,13 @@ static int processQuery(final Cursor alertCursor, final Context context,
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
Expand Down

0 comments on commit 611b1a5

Please sign in to comment.