mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
loadPager should not be called on init. Small fix for restoring brightness when exiting app.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
+4
@@ -1142,6 +1142,10 @@ class VideoDetailView : ConstraintLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_player.isFullScreen) {
|
||||||
|
restoreBrightness()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fun onStop() {
|
fun onStop() {
|
||||||
Logger.i(TAG, "onStop");
|
Logger.i(TAG, "onStop");
|
||||||
|
|||||||
Reference in New Issue
Block a user