Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 2567e1087fde5fcc6772fa6fe447a0d7c7cb128d
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue Apr 21 10:31:49 2020
Deprecate startActivityForResult methods in ComponentActivity
The ActivityResult methods have been released and are the preferred
method of passing activity results between activities. We should
deprecate the old way and suggest that developers use the new APIs.
Test: ./gradlew checkApi
Bug: 154751887
Merged-In: I9cc5fcda446e66cd8bd2c0f19a41cb7c64e87787
Change-Id: I1bd47ae686e4ab59f7685d12a81bd98d03fc36b8
M activity/activity/api/1.2.0-alpha04.txt
M activity/activity/api/api_lint.ignore
M activity/activity/api/current.txt
M activity/activity/api/public_plus_experimental_1.2.0-alpha04.txt
M activity/activity/api/public_plus_experimental_current.txt
M activity/activity/api/restricted_1.2.0-alpha04.txt
M activity/activity/api/restricted_current.txt
M activity/activity/src/main/java/androidx/activity/ComponentActivity.java
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentReceiveResultTest.kt
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentActivity.java
https://android-review.googlesource.com/1292056
Branch: androidx-master-dev
commit 2567e1087fde5fcc6772fa6fe447a0d7c7cb128d
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue Apr 21 10:31:49 2020
Deprecate startActivityForResult methods in ComponentActivity
The ActivityResult methods have been released and are the preferred
method of passing activity results between activities. We should
deprecate the old way and suggest that developers use the new APIs.
Test: ./gradlew checkApi
Bug: 154751887
Merged-In: I9cc5fcda446e66cd8bd2c0f19a41cb7c64e87787
Change-Id: I1bd47ae686e4ab59f7685d12a81bd98d03fc36b8
M activity/activity/api/1.2.0-alpha04.txt
M activity/activity/api/api_lint.ignore
M activity/activity/api/current.txt
M activity/activity/api/public_plus_experimental_1.2.0-alpha04.txt
M activity/activity/api/public_plus_experimental_current.txt
M activity/activity/api/restricted_1.2.0-alpha04.txt
M activity/activity/api/restricted_current.txt
M activity/activity/src/main/java/androidx/activity/ComponentActivity.java
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentReceiveResultTest.kt
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentActivity.java
jb...@google.com <jb...@google.com> #3
This has been fixed internally and will be available in the Activity 1.2.0-alpha04 release.
Description
With the new the ActivityResult APIs introduced in the Androidx Activity 1.2.0-alpha02 release, there is now a more preferred method of passing results between
ComponentActivity
and any classes that implementComponentActivity
.We should deprecate the inherited APIs and point developers to use ActivityResultContract .
registerForActivityResult
passing in the appropriate