Try to fix write issues on Android 9

This commit is contained in:
Davide Depau 2018-10-01 02:44:49 +02:00
parent bbfb2e0054
commit f71658746d
Signed by: depau
GPG Key ID: C7D999B6A55EFE86
1 changed files with 2 additions and 1 deletions

View File

@ -111,12 +111,13 @@ class ConfirmationActivity : ActivityBase() {
}
} catch (e: IOException) {
if (trial == 0) {
StateKeeper.usbMassStorageDevice!!.close()
continue
} else {
confirm_extra_info.text = getString(R.string.could_not_access_usb_error)
break
}
} finally {
StateKeeper.usbMassStorageDevice!!.close()
}
}
}