Skip to content

Commit

Permalink
Make alarm notification not dismissed on button press
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Sep 27, 2024
1 parent c405d82 commit df9fe07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/notifications/logic/alarm_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void showAlarmNotification({
key: dismissActionKey,
label: '$dismissActionLabel All',
actionType: ActionType.SilentAction,
autoDismissible: true,
autoDismissible: false,
));
} else {
if (showSnoozeButton) {
Expand All @@ -52,7 +52,7 @@ void showAlarmNotification({
key: snoozeActionKey,
label: snoozeActionLabel,
actionType: ActionType.SilentAction,
autoDismissible: true,
autoDismissible: false,
));
}

Expand All @@ -61,7 +61,7 @@ void showAlarmNotification({
key: dismissActionKey,
label: "${tasksRequired ? "Solve tasks to " : ""}$dismissActionLabel",
actionType: tasksRequired ? ActionType.Default : ActionType.SilentAction,
autoDismissible: tasksRequired ? false : true,
autoDismissible: false,
));
}

Expand Down

0 comments on commit df9fe07

Please sign in to comment.