Switch to Activity Result API
Use the Activity Result API instead of manually calling startActivityForResult() and handling the result in onActivityResult().
Hi, I want to work on this.
Edit: Sorry I missed tb-team label. Though this issue seems not complex. If I can still work on it, let me know otherwise.
@cketti Is this a good first issue someone outside of the team could work on?
Probably not a good first issue, but should be easy enough. If you want to work on this, please only change one instance per pull request. That'll make it easier for us to review (and suggest an alternative approach should that be necessary).
Side note: Probably not a good idea to set the "status: needs information" label on issues that we don't want to be closed by the automation.
Hi guys,
Is anyone working on this? I can deal with it right now if you want, I've already worked with the Result API in the past and it's not complex to replace the deprecated code.
Hi @cketti, Next steps may be require some consideration before going on with this.
-
SettingsImportFragmentseems to be waiting for a replacement ofOAuthFlowActivitywith the new api. This view also contains aPasswordPromptDialogFragmentusingonActivityResultinstead ofFragmentResultListener. I don't know if both cases are outside the scope of this task. - Beside this, other uses of
startActivityForResult()(i.e.ManageIdentities,MessageComposeandNotificationSoundPreference) are on the legacy package and may be you don't want to spend time on it.
Anyway I look for your instructions.