Fix #9552
This commit is contained in:
parent
14720f951e
commit
08690f3c85
1 changed files with 9 additions and 1 deletions
|
@ -216,10 +216,18 @@ public class OnSaveCurrentTrackFragment extends BottomSheetDialogFragment {
|
|||
}
|
||||
|
||||
public static void showInstance(FragmentManager fragmentManager, List<String> filenames) {
|
||||
if (fragmentManager.isStateSaved()) {
|
||||
return;
|
||||
}
|
||||
OnSaveCurrentTrackFragment f = new OnSaveCurrentTrackFragment();
|
||||
Bundle b = new Bundle();
|
||||
b.putStringArrayList(SAVED_TRACKS_KEY, new ArrayList<>(filenames));
|
||||
f.setArguments(b);
|
||||
f.show(fragmentManager, TAG);
|
||||
try {
|
||||
f.show(fragmentManager, TAG);
|
||||
} catch (IllegalStateException e) {
|
||||
//java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue