Suppress small warning

This commit is contained in:
J-Jamet
2020-03-12 17:15:17 +01:00
parent 9ef2ea016b
commit 71a339a58f
2 changed files with 2 additions and 2 deletions

View File

@@ -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())) {

View File

@@ -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