mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
prevent crash
This commit is contained in:
parent
3ed81bb63f
commit
2165f062b2
1 changed files with 13 additions and 4 deletions
|
@ -87,12 +87,21 @@ public class NavMenuItem {
|
|||
}
|
||||
|
||||
void onClick() {
|
||||
click.run();
|
||||
try {
|
||||
click.run();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
boolean onLongClick() {
|
||||
if (longClick != null)
|
||||
longClick.run();
|
||||
return (longClick != null);
|
||||
try {
|
||||
if (longClick != null)
|
||||
longClick.run();
|
||||
return (longClick != null);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue