From 4ca7ed9f8c733eca63987c2723b9c2f3d04ce08f Mon Sep 17 00:00:00 2001 From: Stypox Date: Sat, 17 Oct 2020 16:13:42 +0200 Subject: [PATCH] Fix IllegalStateException after onSaveInstanceState --- app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java index 45fe11ef4..6761fce59 100644 --- a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java +++ b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java @@ -406,7 +406,7 @@ public final class NavigationHelper { defaultTransaction(fragmentManager) .replace(R.id.fragment_player_holder, instance) .runOnCommit(() -> sendPlayerStartedEvent(instance.requireActivity())) - .commit(); + .commitAllowingStateLoss(); } public static void openChannelFragment(final FragmentManager fragmentManager,