Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #160 from jangrewe/master
Browse files Browse the repository at this point in the history
Fixed RuntimeException with empty state in onSaveInstanceState
  • Loading branch information
spacecowboy authored Jan 9, 2018
2 parents a9b62f4 + 7814010 commit cdfa90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ protected abstract AbstractFilePickerFragment<T> getFragment(

@Override
public void onSaveInstanceState(Bundle b) {
b.putString("WORKAROUND_FOR_BUG_19917_KEY", "WORKAROUND_FOR_BUG_19917_VALUE");
super.onSaveInstanceState(b);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@ public boolean onOptionsItemSelected(MenuItem menuItem) {

@Override
public void onSaveInstanceState(Bundle b) {
super.onSaveInstanceState(b);
b.putString(KEY_CURRENT_PATH, mCurrentPath.toString());
b.putBoolean(KEY_ALLOW_MULTIPLE, allowMultiple);
b.putBoolean(KEY_ALLOW_EXISTING_FILE, allowExistingFile);
b.putBoolean(KEY_ALLOW_DIR_CREATE, allowCreateDir);
b.putBoolean(KEY_SINGLE_CLICK, singleClick);
b.putInt(KEY_MODE, mode);
super.onSaveInstanceState(b);
}

@Override
Expand Down

0 comments on commit cdfa90d

Please sign in to comment.