forked from upstream-mirrors/quik
upgrade to androidx.appcompat 1.6.1
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user