From a40b42b785b9015d8f67135a55c159fb271c9222 Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Sun, 4 Jan 2026 23:16:09 +0200 Subject: [PATCH] Restore instance data in ImportConfirmationDialog before checking the data Prevents crash on check of uninitialized data after screen rotation Co-authored-by: Siddhesh Dhainje --- .../newpipe/local/subscription/ImportConfirmationDialog.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java b/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java index 03dd4a1cd..4a14e89db 100644 --- a/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java +++ b/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java @@ -49,12 +49,10 @@ public class ImportConfirmationDialog extends DialogFragment { @Override public void onCreate(@Nullable final Bundle savedInstanceState) { super.onCreate(savedInstanceState); - + Bridge.restoreInstanceState(this, savedInstanceState); if (resultServiceIntent == null) { throw new IllegalStateException("Result intent is null"); } - - Bridge.restoreInstanceState(this, savedInstanceState); } @Override