prevent crash

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

@ -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…
Cancel
Save