mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Merge pull request #2452 from Bnyro/master
Hide the comments bottom sheet when entering PiP
This commit is contained in:
commit
606c6f961f
@ -18,8 +18,8 @@ import com.github.libretube.extensions.hideKeyboard
|
||||
import com.github.libretube.ui.adapters.SearchAdapter
|
||||
import com.github.libretube.ui.base.BaseFragment
|
||||
import com.github.libretube.util.PreferenceHelper
|
||||
import retrofit2.HttpException
|
||||
import java.io.IOException
|
||||
import retrofit2.HttpException
|
||||
|
||||
class SearchResultFragment : BaseFragment() {
|
||||
private lateinit var binding: FragmentSearchResultBinding
|
||||
|
@ -45,9 +45,4 @@ open class BaseBottomSheet : ExpandedBottomSheet() {
|
||||
dialog?.dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||
dialog?.dismiss()
|
||||
}
|
||||
}
|
||||
|
@ -33,4 +33,10 @@ open class ExpandedBottomSheet : BottomSheetDialogFragment() {
|
||||
fragmentManager,
|
||||
null
|
||||
)
|
||||
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||
// ensure that the sheet doesn't hide parts of the video
|
||||
dialog?.dismiss()
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,9 @@ class CustomSwipeToRefresh(context: Context?, attrs: AttributeSet?) :
|
||||
|
||||
init {
|
||||
setColorSchemeColors(ThemeHelper.getThemeColor(this.context, R.attr.colorPrimary))
|
||||
setProgressBackgroundColorSchemeColor(ThemeHelper.getThemeColor(this.context, R.attr.colorSurface))
|
||||
setProgressBackgroundColorSchemeColor(
|
||||
ThemeHelper.getThemeColor(this.context, R.attr.colorSurface)
|
||||
)
|
||||
}
|
||||
|
||||
@SuppressLint("Recycle")
|
||||
|
Loading…
x
Reference in New Issue
Block a user