mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-21 09:31:29 -08:00
Suppress small warning
This commit is contained in:
1 parent
9ef2ea016b
commit
71a339a58f
2 files changed
+2
-2
No files matched your search
@@ -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