src/main/java/de/blau/android/presets/PresetMRUInfo.java
/**
     * Saves the current MRU data to a file
     * 
     * @param directory the directory the preset data is in
     */
Saves the current MRU data to a file

@param directory the directory the preset data is in
Saves the current MRU data to a file @param directory the directory the preset data is in
public void saveMRU(@NonNull File directory) {
        if (isChanged()) {
            try (FileOutputStream fout = new FileOutputStream(new File(directory, Files.FILE_NAME_MRUFILE));
                    ObjectOutputStream out = new ObjectOutputStream(fout)) {
                out.writeObject(this);
            } catch (Exception e) {
                Log.e(DEBUG_TAG, "MRU saving failed", e);
            }
        }
    }
public void saveMRU ( @ NonNull File directory ) { if ( isChanged ( ) ) { try ( FileOutputStream fout = new FileOutputStream ( new File ( directory , Files . FILE_NAME_MRUFILE ) ) ; ObjectOutputStream out = new ObjectOutputStream ( fout ) ) { out . writeObject ( this ) ; } catch ( Exception e ) { Log . e ( DEBUG_TAG , "MRU saving failed" , e ) ; } } }
Saves the current MRU data to a file
Saves the current MRU data to a file