Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ public Dialog onCreateDialog(@Nullable final Bundle savedInstanceState) {
@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");
}
Comment on lines +52 to 55
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need this check after it? We either set value via show method (100%) either it will be restored (from automatically stored state).

Is there any possibility that after we saved correct state (100%) in onCreate we will still receive null?


Bridge.restoreInstanceState(this, savedInstanceState);
}

@Override
Expand Down