mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-26 11:19:05 +00:00
loadPager should not be called on init. Small fix for restoring brightness when exiting app.
This commit is contained in:
parent
51ac604e31
commit
5e5fffbf97
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
|
@ -1142,6 +1142,10 @@ class VideoDetailView : ConstraintLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_player.isFullScreen) {
|
||||||
|
restoreBrightness()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fun onStop() {
|
fun onStop() {
|
||||||
Logger.i(TAG, "onStop");
|
Logger.i(TAG, "onStop");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue