mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-26 03:46:46 -08:00
Fix crash on notification cancel.
This commit is contained in:
1 parent
4529c1751d
commit
bf6fc2c204
1 file changed
+7
-1
@@ -1,4 +1,5 @@
|
||||
/*
|
||||
*
|
||||
* Copyright 2009-2015 Brian Pellin.
|
||||
*
|
||||
* This file is part of KeePassDroid.
|
||||
@@ -214,7 +215,12 @@ public class EntryActivity extends LockCloseHideActivity {
|
||||
}
|
||||
|
||||
if ( mNM != null ) {
|
||||
mNM.cancelAll();
|
||||
try {
|
||||
mNM.cancelAll();
|
||||
} catch (SecurityException e) {
|
||||
// Some android devices give a SecurityException when trying to cancel notifications without the WAKE_LOCK permission,
|
||||
// we'll ignore these.
|
||||
}
|
||||
}
|
||||
|
||||
super.onDestroy();
|
||||
|
||||
Reference in new issue
Block a user