Prevent crash

This commit is contained in:
M66B
2019-08-04 20:00:20 +02:00
parent 3185166d32
commit 8767aed899
2 changed files with 8 additions and 4 deletions

View File

@@ -39,7 +39,11 @@ public class PopupMenuLifecycle extends PopupMenu implements LifecycleObserver {
@Override
public void show() {
super.show();
try {
super.show();
} catch (Throwable ex) {
Log.e(ex);
}
}
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)