From 028dd1e03b0fcc784d3aa3a065132214300b1a67 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 28 Jul 2019 20:47:50 +0200 Subject: [PATCH] apply the new sideloading check at the editor too --- .../gallery/pro/activities/EditActivity.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt index f65b800fe..9d4889219 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt @@ -26,7 +26,10 @@ import com.bumptech.glide.request.RequestOptions import com.bumptech.glide.request.target.Target import com.simplemobiletools.commons.dialogs.ColorPickerDialog import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.commons.helpers.* +import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE +import com.simplemobiletools.commons.helpers.REAL_FILE_PATH +import com.simplemobiletools.commons.helpers.ensureBackgroundThread +import com.simplemobiletools.commons.helpers.isNougatPlus import com.simplemobiletools.commons.models.FileDirItem import com.simplemobiletools.gallery.pro.BuildConfig import com.simplemobiletools.gallery.pro.R @@ -90,8 +93,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener super.onCreate(savedInstanceState) setContentView(R.layout.activity_edit) - if (config.appSideloadingStatus == SIDELOADING_TRUE) { - showSideloadingDialog() + if (checkAppSideloading()) { return }