From 68e1c24d908e72d727b7099d7596327d1ee0171b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 30 Aug 2023 09:06:00 +0200 Subject: [PATCH] Revert partial media permission handling for proprietary build --- .../gallery/pro/activities/NewPhotoEditActivity.kt | 3 +-- .../gallery/pro/activities/NewVideoEditActivity.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewPhotoEditActivity.kt b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewPhotoEditActivity.kt index 9a0ba34e7..7787dee28 100644 --- a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewPhotoEditActivity.kt +++ b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewPhotoEditActivity.kt @@ -20,7 +20,6 @@ import com.simplemobiletools.gallery.pro.extensions.config import com.simplemobiletools.gallery.pro.extensions.fixDateTaken import com.simplemobiletools.gallery.pro.extensions.tryDeleteFileDirItem import com.simplemobiletools.gallery.pro.helpers.getPermissionToRequest -import com.simplemobiletools.gallery.pro.helpers.getPermissionsToRequest import ly.img.android.pesdk.PhotoEditorSettingsList import ly.img.android.pesdk.assets.filter.basic.FilterPackBasic import ly.img.android.pesdk.assets.font.basic.FontPackBasic @@ -63,7 +62,7 @@ class NewPhotoEditActivity : SimpleActivity() { return } - handlePartialMediaPermissions(getPermissionsToRequest()) { + handlePermission(getPermissionToRequest()) { if (it) { initEditActivity() } else { diff --git a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt index 66be52e82..22b52ba6d 100644 --- a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt +++ b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt @@ -17,7 +17,6 @@ import com.simplemobiletools.gallery.pro.extensions.config import com.simplemobiletools.gallery.pro.extensions.fixDateTaken import com.simplemobiletools.gallery.pro.extensions.tryDeleteFileDirItem import com.simplemobiletools.gallery.pro.helpers.getPermissionToRequest -import com.simplemobiletools.gallery.pro.helpers.getPermissionsToRequest import ly.img.android.pesdk.VideoEditorSettingsList import ly.img.android.pesdk.assets.filter.basic.FilterPackBasic import ly.img.android.pesdk.assets.font.basic.FontPackBasic @@ -58,7 +57,7 @@ class NewVideoEditActivity : SimpleActivity() { return } - handlePartialMediaPermissions(getPermissionsToRequest()) { + handlePermission(getPermissionToRequest()) { if (it) { initEditActivity() } else {