~singpolyma/cheogram-android

d09bf2989c85c22bedc87741df4f88db57ae94df — Stephen Paul Weber 6 months ago 4547421
Don't try to destroy if not created
1 files changed, 3 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/XmppFragment.java
M src/main/java/eu/siacs/conversations/ui/XmppFragment.java => src/main/java/eu/siacs/conversations/ui/XmppFragment.java +3 -1
@@ 78,7 78,9 @@ public abstract class XmppFragment extends Fragment implements OnBackendConnecte

	@Override
	public void onDestroy() {
		lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_DESTROY);
		if (lifecycle.getCurrentState().isAtLeast(Lifecycle.State.CREATED)) {
			lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_DESTROY);
		}
		super.onDestroy();
	}