Remove life cycle observers

This commit is contained in:
M66B
2021-09-28 10:18:20 +02:00
parent bffe51d71c
commit e06c938b0d
17 changed files with 32 additions and 8 deletions

View File

@@ -1915,6 +1915,7 @@ public class Helper {
public void onDestroy() {
Log.i("Authenticate destroyed");
ApplicationEx.getMainHandler().post(cancelPrompt);
owner.getLifecycle().removeObserver(this);
}
});
@@ -2083,6 +2084,11 @@ public class Helper {
else
intf.onSelected(selected);
}
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroy() {
owner.getLifecycle().removeObserver(this);
}
});
}
}