@Override public void setUserVisibleHint(boolean isVisibleToUser) { super.setUserVisibleHint(isVisibleToUser); if (this.isVisible()) { if (isVisibleToUser) { Pie.getInst().isRefreshing = true; } } }
@Override public void onResume() { Pie.getInst().isRefreshing = true; super.onResume(); }