Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 8e1c6d0c00a44464db5137d8d886303e54392ae1
Author: Jeremy Woods <jbwoods@google.com>
Date: Mon Nov 04 13:02:03 2019
Improve documentation for behavior without setUserVisibleHint
This change adds javadoc to the setUserVisibleHint() deprecation message
to better explainb how lifecycle methods replace setUserVisibleHint().
Test: document change
BUG: 143897055
Change-Id: I1eba849dbba77b07c7ff507649e499b49c2b0047
M fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java
https://android-review.googlesource.com/1157613
https://goto.google.com/android-sha1/8e1c6d0c00a44464db5137d8d886303e54392ae1
Branch: androidx-master-dev
commit 8e1c6d0c00a44464db5137d8d886303e54392ae1
Author: Jeremy Woods <jbwoods@google.com>
Date: Mon Nov 04 13:02:03 2019
Improve documentation for behavior without setUserVisibleHint
This change adds javadoc to the setUserVisibleHint() deprecation message
to better explainb how lifecycle methods replace setUserVisibleHint().
Test: document change
BUG: 143897055
Change-Id: I1eba849dbba77b07c7ff507649e499b49c2b0047
M fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java
jb...@google.com <jb...@google.com> #3
The has been fixed internally and will be available in the Fragment 1.3.0-alpha01 release.
an...@google.com <an...@google.com> #4
il...@google.com <il...@google.com> #5
Instead of waiting for Fragments 1.3.0-alpha01, we've decided to make this fix available in Fragments 1.2.0-rc03.
Description
We should add documentation that explains how to properly handle code that was previously in an overwritten setUserVisibleHint(). (Code executed when passing in 'true' should be moved to onResume(), while code executed when passing in 'false' should be moved to onPause())