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 {
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'

View file

@ -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)
}
}
}