Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54008e33 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

1304-Catch_IllegalStateException_on_showing_exceptionDialog

parent 9c6b9d36
Loading
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -101,12 +101,16 @@ public class ExceptionDialogFragment extends AppCompatDialogFragment {

    @Override
    public void show(@NonNull FragmentManager manager, @Nullable String tag) {
        try {
            if (manager.isDestroyed() || !manager.isStateSaved()) {
                Log.e("ExceptionDialog can't be shown as the state is lost. The cause:\n\n" + getStackStrace());
                return;
            }

            super.show(manager, tag);
        } catch (IllegalStateException e) {
            Log.e("ExceptionDialog can't be shown as the state is lost. The cause:\n\n" + getStackStrace());
        }
    }

    @NonNull