Merge "Fragment#setUserVisibleHint guard" into nyc-dev
This commit is contained in:
@@ -1033,7 +1033,8 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
|
||||
* false if it is not.
|
||||
*/
|
||||
public void setUserVisibleHint(boolean isVisibleToUser) {
|
||||
if (!mUserVisibleHint && isVisibleToUser && mState < STARTED && isAdded()) {
|
||||
if (!mUserVisibleHint && isVisibleToUser && mState < STARTED
|
||||
&& mFragmentManager != null && isAdded()) {
|
||||
mFragmentManager.performPendingDeferredStart(this);
|
||||
}
|
||||
mUserVisibleHint = isVisibleToUser;
|
||||
|
||||
Reference in New Issue
Block a user