do not require the Storage permission at video player activity

This commit is contained in:
tibbi 2020-03-19 17:32:46 +01:00
parent 70a0d0f7a9
commit 1a05ea8db4

View file

@ -24,7 +24,6 @@ import com.google.android.exoplayer2.upstream.DataSource
import com.google.android.exoplayer2.upstream.DataSpec import com.google.android.exoplayer2.upstream.DataSpec
import com.google.android.exoplayer2.video.VideoListener import com.google.android.exoplayer2.video.VideoListener
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
import com.simplemobiletools.commons.helpers.ensureBackgroundThread import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.gallery.pro.R import com.simplemobiletools.gallery.pro.R
import com.simplemobiletools.gallery.pro.extensions.* import com.simplemobiletools.gallery.pro.extensions.*
@ -63,15 +62,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
setContentView(R.layout.activity_video_player) setContentView(R.layout.activity_video_player)
setupOrientation() setupOrientation()
checkNotchSupport() checkNotchSupport()
handlePermission(PERMISSION_WRITE_STORAGE) {
if (it) {
initPlayer() initPlayer()
} else {
toast(R.string.no_storage_permissions)
finish()
}
}
} }
override fun onResume() { override fun onResume() {