Created
April 8, 2016 16:33
-
-
Save raymondctc/00c27f64fa2fe58dd3b9e55a563c648a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void setUserVisibleHint(boolean isVisibleToUser) { | |
super.setUserVisibleHint(isVisibleToUser); | |
if (isVisibleToUser && mViewStub != null && !mHasInflated) { | |
View inflatedView = mViewStub.inflate(); | |
onCreateViewAfterViewStubInflated(inflatedView, mSavedInstanceState); | |
afterViewStubInflated(getView()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment