mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-15 18:48:52 +01:00
upgrade to androidx.appcompat 1.6.1
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user