From 3485f023b098a1c87ce08ee995f1b864157f0880 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 16 Sep 2019 19:24:52 +0200 Subject: [PATCH] All current notifications were dismissed by mistake when the app is launched from the launcher --- CHANGES.md | 1 + .../src/main/java/im/vector/riotx/features/home/HomeActivity.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a7772bc9f2..477746fc7e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ Bugfix: - Fix crash due to missing informationData (#535) - Progress in initial sync dialog is decreasing for a step and should not (#532) - Fix rendering issue of accepted third party invitation event + - All current notifications were dismissed by mistake when the app is launched from the launcher Translations: - diff --git a/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt b/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt index 7ef015a9b9..2a43ca705a 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt @@ -111,7 +111,7 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable { } } - if (intent.hasExtra(EXTRA_CLEAR_EXISTING_NOTIFICATION)) { + if (intent.getBooleanExtra(EXTRA_CLEAR_EXISTING_NOTIFICATION, false)) { notificationDrawerManager.clearAllEvents() intent.removeExtra(EXTRA_CLEAR_EXISTING_NOTIFICATION) }