do not allow freely opening locked folders, ask for unlocking

This commit is contained in:
tibbi 2019-07-02 20:09:44 +02:00
parent 6b9773d461
commit 9aea2eec63
2 changed files with 6 additions and 4 deletions

View file

@ -61,7 +61,7 @@ android {
} }
dependencies { 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 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -769,11 +769,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
} }
private fun itemClicked(path: String) { private fun itemClicked(path: String) {
handleLockedFolderOpening(path) {
Intent(this, MediaActivity::class.java).apply { Intent(this, MediaActivity::class.java).apply {
putExtra(DIRECTORY, path) putExtra(DIRECTORY, path)
handleMediaIntent(this) handleMediaIntent(this)
} }
} }
}
private fun handleMediaIntent(intent: Intent) { private fun handleMediaIntent(intent: Intent) {
intent.apply { intent.apply {