mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fix crash by removing all notifications after clearing cache.
Fixes #878
This commit is contained in:
parent
251de0b89c
commit
3573aea600
@ -11,7 +11,7 @@ Other changes:
|
||||
-
|
||||
|
||||
Bugfix 🐛:
|
||||
-
|
||||
- Fix crash by removing all notifications after clearing cache (#878)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user