upgrade to androidx.appcompat 1.6.1

This commit is contained in:
gavine99
2025-04-01 06:44:16 +11:00
parent b6278cf11b
commit bbdc6ceb8e
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.androidx_appcompat_version = '1.3.1'
ext.androidx_appcompat_version = '1.6.1'
ext.androidx_constraintlayout_version = '1.1.3'
ext.androidx_core_version = '1.1.0'
ext.androidx_documentfile_version = '1.0.1'
@@ -28,12 +28,11 @@ class QkActivityResultContracts {
return intent
}
override fun parseResult(resultCode: Int, intent: Intent?): Uri? {
if (intent == null || resultCode != Activity.RESULT_OK) {
return null
}
override fun parseResult(resultCode: Int, intent: Intent?): Uri {
if (resultCode != Activity.RESULT_OK)
return Uri.EMPTY
return intent.data
return intent?.data ?: Uri.EMPTY
}
}
@@ -104,7 +104,7 @@ class BackupController : QkController<BackupView, BackupState, BackupPresenter>(
.create()
}
private lateinit var openDirectory: ActivityResultLauncher<Uri>
private lateinit var openDirectory: ActivityResultLauncher<Uri?>
private lateinit var openDocument: ActivityResultLauncher<QkActivityResultContracts.OpenDocumentParams>
init {