mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fetch video resolutions at videofragment on a background thread
This commit is contained in:
@ -139,10 +139,12 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||
initTimeHolder()
|
||||
checkIfPanorama()
|
||||
|
||||
Thread {
|
||||
activity?.getVideoResolution(mMedium.path)?.apply {
|
||||
mVideoSize.x = x
|
||||
mVideoSize.y = y
|
||||
}
|
||||
}.start()
|
||||
|
||||
if (mIsPanorama) {
|
||||
mView.apply {
|
||||
|
Reference in New Issue
Block a user