I'm trying to move some legacy Activity code to us...
# compose
r
I'm trying to move some legacy Activity code to use...
Copy code
rememberLauncherForActivityResult(
    contract = ActivityResultContracts.StartActivityForResult()
) { result ->
... but the
result.resultCode
is always RESULT_CANCELED, while in the old code in correctly returned RESULT_OK.