List of usage examples for android.app Fragment equals
@Override final public boolean equals(Object o)
From source file:org.eyeseetea.malariacare.DashboardActivity.java
/** * Checks if a dashboardUnsentFragment is active *//*from ww w . ja v a 2 s . c o m*/ public boolean isFragmentActive(Fragment fragment, int layout) { Fragment currentFragment = this.getFragmentManager().findFragmentById(layout); if (currentFragment != null && currentFragment.equals(fragment)) { return true; } return false; }