Fix IllegalStateException

This commit is contained in:
Alexander Sytnyk 2018-02-07 12:17:22 +02:00
parent d06eca5e4e
commit 291509580c

View file

@ -268,6 +268,8 @@ public class DataStoragePlaceDialogFragment extends BottomSheetDialogFragment {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putBoolean(STORAGE_READOLNY_KEY, storageReadOnly); args.putBoolean(STORAGE_READOLNY_KEY, storageReadOnly);
f.setArguments(args); f.setArguments(args);
f.show(fragmentManager, DataStoragePlaceDialogFragment.TAG); fragmentManager.beginTransaction()
.add(f, DataStoragePlaceDialogFragment.TAG)
.commitAllowingStateLoss();
} }
} }