Skip to content

Commit

Permalink
Store user replies, ignore non-existent notification removal(#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xf104a committed Jan 5, 2024
1 parent 41ba837 commit 0895374
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ private void sendNotification(int notification_id, JSONObject notification){
}

public void removeNotification(int notification_id){
if(notification_id < 0){
Log.w(TAG, "Got notification id which is negative, ignoring request");
return;
}
Log.d(TAG, "Removing notification " + Integer.valueOf(notification_id).toString());
mNotificationManager.cancel(notification_id);
synchronized (active_notifications) {
Expand Down

0 comments on commit 0895374

Please sign in to comment.