fetch video resolutions at videofragment on a background thread

This commit is contained in:
tibbi 2019-06-10 23:34:43 +02:00
parent 190a3035db
commit d05f3b7d8d

View file

@ -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 {