From 3573aea6002adc2692677c81a47e07f8803d761f Mon Sep 17 00:00:00 2001 From: onurays Date: Tue, 11 Feb 2020 16:48:28 +0300 Subject: [PATCH] Fix crash by removing all notifications after clearing cache. Fixes #878 --- CHANGES.md | 2 +- vector/src/main/java/im/vector/riotx/features/MainActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0af92bf211..1ffa3c7ebe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,7 +11,7 @@ Other changes: - Bugfix 🐛: - - + - Fix crash by removing all notifications after clearing cache (#878) Translations 🗣: - diff --git a/vector/src/main/java/im/vector/riotx/features/MainActivity.kt b/vector/src/main/java/im/vector/riotx/features/MainActivity.kt index c714be7650..bc5a1aff95 100644 --- a/vector/src/main/java/im/vector/riotx/features/MainActivity.kt +++ b/vector/src/main/java/im/vector/riotx/features/MainActivity.kt @@ -85,7 +85,7 @@ class MainActivity : VectorBaseActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) args = parseArgs() - if (args.clearCredentials || args.isUserLoggedOut) { + if (args.clearCredentials || args.isUserLoggedOut || args.clearCache) { clearNotifications() } // Handle some wanted cleanup