From 9aea2eec633e40c6369db3483e31b96f13fb5f55 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jul 2019 20:09:44 +0200 Subject: [PATCH] do not allow freely opening locked folders, ask for unlocking --- app/build.gradle | 2 +- .../gallery/pro/activities/MainActivity.kt | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 22fa6f38b..fdebd0c0d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -61,7 +61,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.14.8' + implementation 'com.simplemobiletools:commons:5.14.9' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'androidx.multidex:multidex:2.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 4b25b4bb0..aa8ab3f8a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -769,9 +769,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } private fun itemClicked(path: String) { - Intent(this, MediaActivity::class.java).apply { - putExtra(DIRECTORY, path) - handleMediaIntent(this) + handleLockedFolderOpening(path) { + Intent(this, MediaActivity::class.java).apply { + putExtra(DIRECTORY, path) + handleMediaIntent(this) + } } }