src/main/java/de/blau/android/propertyeditor/Util.java
/**
     * Add the MRU presets fragment
     * 
     * @param fm a FragmentManager
     * @param container container resource id
     * @param elementId the id of an osm element
     * @param elementName the type of an osm element
     */
Add the MRU presets fragment

@param fm a FragmentManager
@param container container resource id
@param elementId the id of an osm element
@param elementName the type of an osm element
Add the MRU presets fragment @param fm a FragmentManager @param container container resource id @param elementId the id of an osm element @param elementName the type of an osm element
public static void addMRUPresetsFragment(@NonNull FragmentManager fm, int container, long elementId, @NonNull String elementName) {
        Log.d(DEBUG_TAG, "Adding MRU prests");
        FragmentTransaction ft = fm.beginTransaction();
        Fragment recentPresetsFragment = fm.findFragmentByTag(PropertyEditor.RECENTPRESETS_FRAGMENT);
        if (recentPresetsFragment != null) {
            ft.remove(recentPresetsFragment);
        }
        recentPresetsFragment = RecentPresetsFragment.newInstance(elementId, elementName);
        ft.add(container, recentPresetsFragment, PropertyEditor.RECENTPRESETS_FRAGMENT);
        ft.commit();
    }
public static void addMRUPresetsFragment ( @ NonNull FragmentManager fm , int container , long elementId , @ NonNull String elementName ) { Log . d ( DEBUG_TAG , "Adding MRU prests" ) ; FragmentTransaction ft = fm . beginTransaction ( ) ; Fragment recentPresetsFragment = fm . findFragmentByTag ( PropertyEditor . RECENTPRESETS_FRAGMENT ) ; if ( recentPresetsFragment != null ) { ft . remove ( recentPresetsFragment ) ; } recentPresetsFragment = RecentPresetsFragment . newInstance ( elementId , elementName ) ; ft . add ( container , recentPresetsFragment , PropertyEditor . RECENTPRESETS_FRAGMENT ) ; ft . commit ( ) ; }
Add the MRU presets fragment
Add the MRU presets fragment