Fix video screenshot sizing

Fixes #3087
This commit is contained in:
Nicolas Pomepuy 2024-09-18 10:00:57 +02:00
parent 2ae15b7223
commit c619725b03

View File

@ -1120,7 +1120,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
height = it.getHeight()
}
if (width == 0) width = surface.width
if (height == 0) height = surface.width
if (height == 0) height = surface.height
try {
val bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
val simpleDateFormat = SimpleDateFormat("yyyyMMdd_HHmmss")