mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-12 16:45:46 +01:00
catch security exceptions at fillExtraOutput
This commit is contained in:
parent
c930ed5cda
commit
50003b38fb
@ -476,6 +476,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||
inputStream = FileInputStream(File(path))
|
||||
outputStream = contentResolver.openOutputStream(output)
|
||||
inputStream.copyTo(outputStream)
|
||||
} catch (e: SecurityException) {
|
||||
showErrorToast(e)
|
||||
} catch (ignored: FileNotFoundException) {
|
||||
} finally {
|
||||
inputStream?.close()
|
||||
|
Loading…
Reference in New Issue
Block a user