Merge pull request #11051 from osmandapp/Hot-fix

Fix rotate screen on list favorite group
This commit is contained in:
Vitaliy 2021-03-02 13:11:03 +02:00 committed by GitHub
commit 7707c1c981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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));
}
fragment.setArguments(bundle);
fragment.setRetainInstance(true);
return fragment;
}

View file

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