mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
cleanup
This commit is contained in:
parent
da8bfe6327
commit
d2bc2d23b5
@ -165,6 +165,7 @@ class PlayerFragment : BaseFragment() {
|
||||
private var sponsorBlockEnabled = true
|
||||
private var sponsorBlockNotifications = true
|
||||
private var skipButtonsEnabled = false
|
||||
private var pipEnabled = true
|
||||
|
||||
/**
|
||||
* for autoplay
|
||||
@ -328,6 +329,11 @@ class PlayerFragment : BaseFragment() {
|
||||
PreferenceKeys.SKIP_BUTTONS,
|
||||
false
|
||||
)
|
||||
|
||||
pipEnabled = PreferenceHelper.getBoolean(
|
||||
PreferenceKeys.PICTURE_IN_PICTURE,
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
private fun initializeTransitionLayout() {
|
||||
@ -1629,11 +1635,6 @@ class PlayerFragment : BaseFragment() {
|
||||
}
|
||||
|
||||
private fun shouldStartPiP(): Boolean {
|
||||
val pipEnabled = PreferenceHelper.getBoolean(
|
||||
PreferenceKeys.PICTURE_IN_PICTURE,
|
||||
true
|
||||
)
|
||||
|
||||
if (!pipEnabled) return false
|
||||
|
||||
val bounds = Rect()
|
||||
|
Loading…
Reference in New Issue
Block a user