Try to fix write issues on Android 9

This commit is contained in:
Davide Depau committed 2018-10-01 02:44:49 +02:00
1 parent bbfb2e0054
commit f71658746d
1 file changed
+2 -1
@@ -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()
}
}
}