show more verbose exceptions in some cases
This commit is contained in:
parent
09fa5275e8
commit
cc7b57e26e
1 changed files with 3 additions and 2 deletions
|
@ -254,7 +254,8 @@ fun BaseSimpleActivity.rescanDeletedFile(file: File, callback: () -> Unit) {
|
|||
MediaScannerConnection.scanFile(applicationContext, arrayOf(file.absolutePath), null, { s, uri ->
|
||||
try {
|
||||
contentResolver.delete(uri, null, null)
|
||||
} catch (ignored: Exception) {
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
callback()
|
||||
})
|
||||
|
@ -291,7 +292,7 @@ fun BaseSimpleActivity.renameFile(oldFile: File, newFile: File, callback: (succe
|
|||
callback(false)
|
||||
}
|
||||
} catch (e: SecurityException) {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
showErrorToast(e)
|
||||
callback(false)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue