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>
This commit is contained in:
parent
fc66bee429
commit
a40b42b785
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user