mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-02 01:01:17 +00:00
Fix notification not being cancelled on app shutdown (#81)
Fix notification not being cancelled on app shutdown if the app was continously in DISABLED state.
This commit is contained in:
parent
c224bcb04a
commit
79d0d7cc4c
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ public class NotificationHandler {
|
||||||
Log.v(TAG, "Updating notification");
|
Log.v(TAG, "Updating notification");
|
||||||
mNotificationManager.notify(idToShow, builder.build());
|
mNotificationManager.notify(idToShow, builder.build());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
mNotificationManager.cancel(idToShow);
|
||||||
}
|
}
|
||||||
mNotificationManager.cancel(idToCancel);
|
mNotificationManager.cancel(idToCancel);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue