loadPager should not be called on init. Small fix for restoring brightness when exiting app.

This commit is contained in:
Koen J 2025-07-21 14:57:03 +02:00
commit 5e5fffbf97
2 changed files with 4 additions and 4 deletions

View file

@ -57,10 +57,6 @@ class ShortsFragment : MainFragment() {
private lateinit var overlayQualityContainer: FrameLayout private lateinit var overlayQualityContainer: FrameLayout
private var customViewAdapter: CustomViewAdapter? = null private var customViewAdapter: CustomViewAdapter? = null
init {
loadPager()
}
// we just completely reset the data structure so we want to tell the adapter that // we just completely reset the data structure so we want to tell the adapter that
@SuppressLint("NotifyDataSetChanged") @SuppressLint("NotifyDataSetChanged")
override fun onShownWithView(parameter: Any?, isBack: Boolean) { override fun onShownWithView(parameter: Any?, isBack: Boolean) {

View file

@ -1142,6 +1142,10 @@ class VideoDetailView : ConstraintLayout {
} }
} }
} }
if (_player.isFullScreen) {
restoreBrightness()
}
} }
fun onStop() { fun onStop() {
Logger.i(TAG, "onStop"); Logger.i(TAG, "onStop");