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

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()
}
}
}