mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Suppress small warning
This commit is contained in:
@@ -313,7 +313,7 @@ open class PasswordActivity : StylishActivity() {
|
||||
}
|
||||
|
||||
private fun initUriFromIntent() {
|
||||
mForceReadOnly = !UriUtil.isUriWritable(contentResolver, mDatabaseFileUri)
|
||||
mForceReadOnly = !UriUtil.isUriWritable(mDatabaseFileUri)
|
||||
|
||||
// Post init uri with KeyFile if needed
|
||||
if (mRememberKeyFile && (mDatabaseKeyFileUri == null || mDatabaseKeyFileUri.toString().isEmpty())) {
|
||||
|
||||
@@ -50,7 +50,7 @@ object UriUtil {
|
||||
}
|
||||
}
|
||||
|
||||
fun isUriWritable(contentResolver: ContentResolver, fileUri: Uri?): Boolean {
|
||||
fun isUriWritable(fileUri: Uri?): Boolean {
|
||||
if (fileUri == null)
|
||||
return false
|
||||
// TODO Uri writeable detection
|
||||
|
||||
Reference in New Issue
Block a user