Skip to content

Commit 5bfdcb6

Browse files
committed
Fix registerForActivityResult type inference in DocumentUploadDialog
- Remove explicit type annotation on lambda parameter to allow compiler inference - Let OpenDocument() contract infer Uri? type from ActivityResultContract - Resolves: 'Not enough information to infer type argument for I'
1 parent f57b01b commit 5bfdcb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/kharagedition/tibetankeyboard/chat/DocumentUploadDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class DocumentUploadDialog(
4444

4545
private val filePickerRequest = registerForActivityResult(
4646
androidx.activity.result.contracts.ActivityResultContracts.OpenDocument()
47-
) { uri: Uri? ->
47+
) { uri ->
4848
uri?.let {
4949
selectedFileUri = it
5050
updateFileDisplay(it)

0 commit comments

Comments
 (0)