Fix rotate screen on list favorite group

This commit is contained in:
androiddevkotlin 2021-03-02 13:09:55 +02:00
parent f400e755fd
commit e035824afc
2 changed files with 2 additions and 0 deletions

View file

@ -67,6 +67,7 @@ public class AddNewFavoriteCategoryBottomSheet extends MenuBottomSheetDialogFrag
bundle.putStringArrayList(KEY_CTX_EDIT_GPX_CATEGORIES, new ArrayList<>(gpxCategories)); bundle.putStringArrayList(KEY_CTX_EDIT_GPX_CATEGORIES, new ArrayList<>(gpxCategories));
} }
fragment.setArguments(bundle); fragment.setArguments(bundle);
fragment.setRetainInstance(true);
return fragment; return fragment;
} }

View file

@ -65,6 +65,7 @@ public class SelectFavoriteCategoryBottomSheet extends MenuBottomSheetDialogFrag
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString(KEY_CTX_SEL_CAT_EDITOR_TAG, editorTag); bundle.putString(KEY_CTX_SEL_CAT_EDITOR_TAG, editorTag);
fragment.setArguments(bundle); fragment.setArguments(bundle);
fragment.setRetainInstance(true);
return fragment; return fragment;
} }