mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fetch video resolutions at videofragment on a background thread
This commit is contained in:
parent
190a3035db
commit
d05f3b7d8d
1 changed files with 6 additions and 4 deletions
|
@ -139,10 +139,12 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
initTimeHolder()
|
initTimeHolder()
|
||||||
checkIfPanorama()
|
checkIfPanorama()
|
||||||
|
|
||||||
|
Thread {
|
||||||
activity?.getVideoResolution(mMedium.path)?.apply {
|
activity?.getVideoResolution(mMedium.path)?.apply {
|
||||||
mVideoSize.x = x
|
mVideoSize.x = x
|
||||||
mVideoSize.y = y
|
mVideoSize.y = y
|
||||||
}
|
}
|
||||||
|
}.start()
|
||||||
|
|
||||||
if (mIsPanorama) {
|
if (mIsPanorama) {
|
||||||
mView.apply {
|
mView.apply {
|
||||||
|
|
Loading…
Reference in a new issue