1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-24 07:37:30 +00:00
This commit is contained in:
Austin Huang 2021-07-24 10:28:46 -04:00
parent 9358309c89
commit a0983249bb
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -268,10 +268,13 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
@Override @Override
public void onSaveInstanceState(@NonNull final Bundle outState) { public void onSaveInstanceState(@NonNull final Bundle outState) {
super.onSaveInstanceState(outState); super.onSaveInstanceState(outState);
final Media media = viewModel.getMedia(); try {
if (media.getType() == MediaItemType.MEDIA_TYPE_SLIDER) { final Media media = viewModel.getMedia();
outState.putInt(ARG_SLIDER_POSITION, sliderPosition); if (media.getType() == MediaItemType.MEDIA_TYPE_SLIDER) {
outState.putInt(ARG_SLIDER_POSITION, sliderPosition);
}
} }
catch (Exception _) {}
} }
@Override @Override