Skip to content

Instantly share code, notes, and snippets.

@kebbbnnn
Created November 15, 2017 03:25
Show Gist options
  • Save kebbbnnn/35f64b943c9d1bd2ff20b6bbdf9ad3d9 to your computer and use it in GitHub Desktop.
Save kebbbnnn/35f64b943c9d1bd2ff20b6bbdf9ad3d9 to your computer and use it in GitHub Desktop.
@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