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:
parent
5ebcee2afd
commit
b91f4af787
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue