Fix crash on screen rotation while entering SoundCloud import URL#12995
Merged
TobiGr merged 3 commits intoTeamNewPipe:devfrom Jan 9, 2026
Merged
Conversation
dustdfg
reviewed
Jan 4, 2026
app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java
Outdated
Show resolved
Hide resolved
4 tasks
Contributor
|
LGTM, are we able to remove the state now? At least I do not see areason to keep it now. 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 b586ad3..0054bd2 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
@@ -10,13 +10,11 @@ import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
-import com.evernote.android.state.State;
import com.livefront.bridge.Bridge;
import org.schabi.newpipe.R;
public class ImportConfirmationDialog extends DialogFragment {
- @State
protected Intent resultServiceIntent;
private static final String EXTRA_RESULT_SERVICE_INTENT = "extra_result_service_intent";
@@ -48,10 +46,7 @@ public class ImportConfirmationDialog extends DialogFragment {
@Override
public void onCreate(@Nullable final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
-
resultServiceIntent = requireArguments().getParcelable(EXTRA_RESULT_SERVICE_INTENT);
-
- Bridge.restoreInstanceState(this, savedInstanceState);
}
@Override
|
dustdfg
reviewed
Jan 7, 2026
app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java
Outdated
Show resolved
Hide resolved
Contributor
|
/backport release-0-28.1 |
|
Successfully created backport PR for |
dustdfg
added a commit
to dustdfg/NewPipe
that referenced
this pull request
Jan 9, 2026
`onSaveInstanceState` is useless after TeamNewPipe#12995
dustdfg
added a commit
to dustdfg/NewPipe
that referenced
this pull request
Jan 9, 2026
`onSaveInstanceState` is useless after TeamNewPipe#12995
dustdfg
added a commit
to dustdfg/NewPipe
that referenced
this pull request
Jan 11, 2026
`onSaveInstanceState` is useless after TeamNewPipe#12995
dustdfg
added a commit
to dustdfg/NewPipe
that referenced
this pull request
Jan 11, 2026
`onSaveInstanceState` is useless after TeamNewPipe#12995
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
before-fix.mp4
after-fix.mp4
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence