From 1a05ea8db4df771672c8d9ec58562d85016e4488 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 19 Mar 2020 17:32:46 +0100 Subject: [PATCH] do not require the Storage permission at video player activity --- .../gallery/pro/activities/VideoPlayerActivity.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index ef1a6d537..6f994024d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -24,7 +24,6 @@ import com.google.android.exoplayer2.upstream.DataSource import com.google.android.exoplayer2.upstream.DataSpec import com.google.android.exoplayer2.video.VideoListener import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE import com.simplemobiletools.commons.helpers.ensureBackgroundThread import com.simplemobiletools.gallery.pro.R import com.simplemobiletools.gallery.pro.extensions.* @@ -63,15 +62,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen setContentView(R.layout.activity_video_player) setupOrientation() checkNotchSupport() - - handlePermission(PERMISSION_WRITE_STORAGE) { - if (it) { - initPlayer() - } else { - toast(R.string.no_storage_permissions) - finish() - } - } + initPlayer() } override fun onResume() {