Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 95c51e53314b21fb7864a2ad73b8ac76abe03870
Author: Clara Fok <clarafok@google.com>
Date: Tue Oct 24 12:29:24 2023
Fix FragmentContainerView fragment initiation
When creating the Fragment internally as part of inflating a FragmentContainerView, the Fragment will be populated with proper states for id, host, and fragmentManager etc. right away so that these states are accessible on the Fragment's onInflate callback.
Test: ./gradlew fragment:fragment:cC
Bug: 307427423
Relnote: "When the Fragment of a FragmentContainerView is inflated, its states such as FragmentManager, Host, and id is now accessible in the onInflate callback."
Change-Id: I1e44c5dbf5f0e0c55be39489f4c973937f6910cd
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentContainerViewTest.kt
A fragment/fragment/src/androidTest/res/layout/inflated_fragment_container_view_strict_view.xml
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentContainerView.kt
https://android-review.googlesource.com/2802235
Branch: androidx-main
commit 95c51e53314b21fb7864a2ad73b8ac76abe03870
Author: Clara Fok <clarafok@google.com>
Date: Tue Oct 24 12:29:24 2023
Fix FragmentContainerView fragment initiation
When creating the Fragment internally as part of inflating a FragmentContainerView, the Fragment will be populated with proper states for id, host, and fragmentManager etc. right away so that these states are accessible on the Fragment's onInflate callback.
Test: ./gradlew fragment:fragment:cC
Bug: 307427423
Relnote: "When the Fragment of a FragmentContainerView is inflated, its states such as FragmentManager, Host, and id is now accessible in the onInflate callback."
Change-Id: I1e44c5dbf5f0e0c55be39489f4c973937f6910cd
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentContainerViewTest.kt
A fragment/fragment/src/androidTest/res/layout/inflated_fragment_container_view_strict_view.xml
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentContainerView.kt
cl...@google.com <cl...@google.com> #3
Fixed internaly and will be available in fragment 1.6.2
na...@google.com <na...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.fragment:fragment:1.6.2
pr...@google.com <pr...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.fragment:fragment:1.7.0-alpha07
Description