minor code style update
This commit is contained in:
parent
7d27cf8efc
commit
c57b3edac5
|
@ -479,8 +479,8 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
private fun checkIfPanorama() {
|
private fun checkIfPanorama() {
|
||||||
try {
|
try {
|
||||||
val fis = FileInputStream(File(mMedium.path))
|
val fis = FileInputStream(File(mMedium.path))
|
||||||
fis.use { fis ->
|
fis.use {
|
||||||
context!!.parseFileChannel(mMedium.path, fis.channel, 0, 0, 0) {
|
context!!.parseFileChannel(mMedium.path, it.channel, 0, 0, 0) {
|
||||||
mIsPanorama = true
|
mIsPanorama = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -591,8 +591,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mExoPlayer == null)
|
if (mExoPlayer == null) {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (mIsPlaying) {
|
if (mIsPlaying) {
|
||||||
mExoPlayer!!.playWhenReady = true
|
mExoPlayer!!.playWhenReady = true
|
||||||
|
|
Loading…
Reference in New Issue