Created
November 15, 2017 03:25
-
-
Save kebbbnnn/35f64b943c9d1bd2ff20b6bbdf9ad3d9 to your computer and use it in GitHub Desktop.
This file contains 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 visible) { | |
super.setUserVisibleHint(visible); | |
if (visible && isResumed()) { | |
// fragment is visible. do some stuff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment