prevent crash

pull/177/head
M66B 5 years ago
parent 3ed81bb63f
commit 2165f062b2

@ -87,12 +87,21 @@ public class NavMenuItem {
} }
void onClick() { void onClick() {
click.run(); try {
click.run();
} catch (Throwable ex) {
Log.e(ex);
}
} }
boolean onLongClick() { boolean onLongClick() {
if (longClick != null) try {
longClick.run(); if (longClick != null)
return (longClick != null); longClick.run();
return (longClick != null);
} catch (Throwable ex) {
Log.e(ex);
return false;
}
} }
} }

Loading…
Cancel
Save