src/main/java/de/blau/android/propertyeditor/Util.java
/**
     * Dismiss a child Fragment
     * 
     * @param fm the FragmentManager from the calling Fragment
     * @param tag the tag of the Fragment we want to remove
     */
Dismiss a child Fragment

@param fm the FragmentManager from the calling Fragment
@param tag the tag of the Fragment we want to remove
Dismiss a child Fragment @param fm the FragmentManager from the calling Fragment @param tag the tag of the Fragment we want to remove
public static void removeChildFragment(@NonNull FragmentManager fm, @NonNull String tag) {
        FragmentTransaction ft = fm.beginTransaction();
        Fragment prev = fm.findFragmentByTag(tag);
        if (prev != null) {
            ft.remove(prev);
        }
        try {
            ft.commit();
        } catch (IllegalStateException isex) {
            Log.e(DEBUG_TAG, "removeChildFragment " + tag, isex);
        }
    }
public static void removeChildFragment ( @ NonNull FragmentManager fm , @ NonNull String tag ) { FragmentTransaction ft = fm . beginTransaction ( ) ; Fragment prev = fm . findFragmentByTag ( tag ) ; if ( prev != null ) { ft . remove ( prev ) ; } try { ft . commit ( ) ; } catch ( IllegalStateException isex ) { Log . e ( DEBUG_TAG , "removeChildFragment " + tag , isex ) ; } }
Dismiss a child Fragment
Dismiss a child Fragment