Try to fix write issues on Android 9
This commit is contained in:
parent
bbfb2e0054
commit
f71658746d
1 changed files with 2 additions and 1 deletions
|
@ -111,12 +111,13 @@ class ConfirmationActivity : ActivityBase() {
|
||||||
}
|
}
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
if (trial == 0) {
|
if (trial == 0) {
|
||||||
StateKeeper.usbMassStorageDevice!!.close()
|
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
confirm_extra_info.text = getString(R.string.could_not_access_usb_error)
|
confirm_extra_info.text = getString(R.string.could_not_access_usb_error)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
StateKeeper.usbMassStorageDevice!!.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue