Skip to content

Instantly share code, notes, and snippets.

View SeanSWatkins's full-sized avatar

Sean Watkins SeanSWatkins

  • Private
  • South Africa
View GitHub Profile
public class MyFragment {
boolean loaded;
private void maybeLoad() {
if (!loaded && getUserVisibleHint()) {
loaded = true;
loadMyData();
}
}
@Override