[Android] Fix the loading on orientation regression
Nicolas Pomepuy
git at videolan.org
Fri Oct 21 09:07:05 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Oct 21 10:52:33 2022 +0200| [836c1071f414a47a0c1a460bab25050615522dc1] | committer: Nicolas Pomepuy
Fix the loading on orientation regression
It was introduced by the extension removal
> https://code.videolan.org/videolan/vlc-android/commit/836c1071f414a47a0c1a460bab25050615522dc1
---
application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
index ca67a752d..f8145665f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
@@ -137,6 +137,7 @@ class MainActivity : ContentActivity(),
override fun onSaveInstanceState(outState: Bundle) {
val current = currentFragment
+ supportFragmentManager.putFragment(outState, "current_fragment", current!!)
outState.putInt(EXTRA_TARGET, currentFragmentId)
super.onSaveInstanceState(outState)
}
More information about the Android
mailing list