List of usage examples for android.app Fragment isResumed
final public boolean isResumed()
From source file:com.tananaev.fmelib.FragmentUtil.java
@TargetApi(Build.VERSION_CODES.HONEYCOMB) public static void runWhenResumed(android.app.Fragment fragment, Task task) { if (fragment.isResumed()) { task.run(false);/*from w w w. j a v a 2s.c o m*/ } else { fragmentPendingTasks(fragment).add(task); } }