Update PlayerFragment.kt

This commit is contained in:
Bnyro 2022-06-02 21:36:58 +02:00 committed by GitHub
parent b0a4ce167e
commit e820441ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ class PlayerFragment : Fragment() {
// switching between original aspect ratio (black bars) and zoomed to fill device screen
view.findViewById<ImageButton>(R.id.aspect_ratio_button).setOnClickListener {
if(isZoomed) {
if (isZoomed) {
exoPlayerView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
isZoomed = false
} else {