Skip to content

Commit a40b42b

Browse files
Yevhen Babiichuk (DustDFG)siddhesh-06
andcommitted
Restore instance data in ImportConfirmationDialog before checking the data
Prevents crash on check of uninitialized data after screen rotation Co-authored-by: Siddhesh Dhainje <siddheshdhainje2001@gmail.com>
1 parent fc66bee commit a40b42b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ public Dialog onCreateDialog(@Nullable final Bundle savedInstanceState) {
4949
@Override
5050
public void onCreate(@Nullable final Bundle savedInstanceState) {
5151
super.onCreate(savedInstanceState);
52-
52+
Bridge.restoreInstanceState(this, savedInstanceState);
5353
if (resultServiceIntent == null) {
5454
throw new IllegalStateException("Result intent is null");
5555
}
56-
57-
Bridge.restoreInstanceState(this, savedInstanceState);
5856
}
5957

6058
@Override

0 commit comments

Comments
 (0)