1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Added model debug logging

This commit is contained in:
M66B 2022-04-26 08:05:41 +02:00
parent 5ebcee2afd
commit b91f4af787

View file

@ -211,6 +211,16 @@ public class ViewModelMessages extends ViewModel {
}
owner.getLifecycle().addObserver(new LifecycleObserver() {
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
public void onPaused() {
Log.i("Paused model=" + viewType + " last=" + last);
}
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
public void onResumed() {
Log.i("Resumed model=" + viewType + " last=" + last);
}
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroyed() {
Log.i("Destroy model=" + viewType);