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 sponsorBlockEnabled = true
|
||||||
private var sponsorBlockNotifications = true
|
private var sponsorBlockNotifications = true
|
||||||
private var skipButtonsEnabled = false
|
private var skipButtonsEnabled = false
|
||||||
|
private var pipEnabled = true
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* for autoplay
|
* for autoplay
|
||||||
@ -328,6 +329,11 @@ class PlayerFragment : BaseFragment() {
|
|||||||
PreferenceKeys.SKIP_BUTTONS,
|
PreferenceKeys.SKIP_BUTTONS,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pipEnabled = PreferenceHelper.getBoolean(
|
||||||
|
PreferenceKeys.PICTURE_IN_PICTURE,
|
||||||
|
true
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initializeTransitionLayout() {
|
private fun initializeTransitionLayout() {
|
||||||
@ -1629,11 +1635,6 @@ class PlayerFragment : BaseFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun shouldStartPiP(): Boolean {
|
private fun shouldStartPiP(): Boolean {
|
||||||
val pipEnabled = PreferenceHelper.getBoolean(
|
|
||||||
PreferenceKeys.PICTURE_IN_PICTURE,
|
|
||||||
true
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!pipEnabled) return false
|
if (!pipEnabled) return false
|
||||||
|
|
||||||
val bounds = Rect()
|
val bounds = Rect()
|
||||||
|
Loading…
Reference in New Issue
Block a user