mirror of https://github.com/M66B/FairEmail.git
Added logging
This commit is contained in:
parent
9c64ac20f0
commit
6e804cbc0b
|
@ -35,10 +35,12 @@ public class PopupMenuLifecycle extends PopupMenu implements LifecycleObserver {
|
||||||
public PopupMenuLifecycle(@NonNull Context context, LifecycleOwner owner, @NonNull View anchor) {
|
public PopupMenuLifecycle(@NonNull Context context, LifecycleOwner owner, @NonNull View anchor) {
|
||||||
super(context, anchor);
|
super(context, anchor);
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
|
Log.i("Instantiate " + this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
|
Log.i("Show " + this);
|
||||||
try {
|
try {
|
||||||
super.show();
|
super.show();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
@ -48,6 +50,7 @@ public class PopupMenuLifecycle extends PopupMenu implements LifecycleObserver {
|
||||||
|
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
Log.i("Destroy " + this);
|
||||||
this.dismiss();
|
this.dismiss();
|
||||||
owner = null;
|
owner = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue