mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 21:07:52 +00:00
android: Don't crash the app when selecting a zip that causes a SecurityException
This commit is contained in:
parent
eb4ab9bc58
commit
8e8627a258
1 changed files with 5 additions and 1 deletions
|
@ -103,7 +103,11 @@ object GpuDriverHelper {
|
||||||
)
|
)
|
||||||
|
|
||||||
// Unzip the driver.
|
// Unzip the driver.
|
||||||
unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
|
try {
|
||||||
|
unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
|
||||||
|
} catch (e: SecurityException) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize the driver parameters.
|
// Initialize the driver parameters.
|
||||||
initializeDriverParameters(context)
|
initializeDriverParameters(context)
|
||||||
|
|
Loading…
Reference in a new issue