Improving UX related to images

This commit is contained in:
Matéo Duparc 2020-12-20 12:27:48 +01:00
parent eefca5ee0a
commit a4d32bff56
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
3 changed files with 2 additions and 10 deletions

View File

@ -502,6 +502,7 @@ open class BaseExplorerActivity : BaseActivity() {
} else {
isStartingActivity = false
ExternalProvider.removeFiles(this)
setCurrentPath(currentDirectoryPath)
}
}
}

View File

@ -123,15 +123,7 @@ class ImageViewer: FileViewerActivity() {
wasMapped = true
}
if (mappedImages.size == 0){ //can happen on deleting images
ColoredAlertDialogBuilder(this)
.keepFullScreen()
.setTitle(R.string.error)
.setCancelable(false)
.setPositiveButton(R.string.ok) { _, _ ->
goBackToExplorer()
}
.setMessage(R.string.no_more_images)
.show()
} else {
currentMappedImageIndex = if (deltaX < 0){
MiscUtils.incrementIndex(currentMappedImageIndex, mappedImages)

View File

@ -182,7 +182,6 @@
<string name="error_cipher_null">Error cipher is null</string>
<string name="key_permanently_invalidated_exception">KeyPermanentlyInvalidatedException</string>
<string name="key_permanently_invalidated_exception_msg">It looks like you have added a new fingerprint. Saved passwords hash have become unusable.</string>
<string name="no_more_images">No more images found.</string>
<string name="usf_read_doc">You should read it carefully before enabling any of these options.</string>
<string name="usf_doc">Unsafe features documentation</string>
<string name="error_retrieving_filename">Unable to retrieve file name for URI: %s</string>