public void saveSoundPreferences ( final boolean flush ) { if ( Strings . isNotEmpty ( musicPreferences ) ) { if ( Strings . isNotEmpty ( soundVolumePreferenceName ) ) { saveInPreferences ( musicPreferences , soundVolumePreferenceName , soundVolume ) ; } if ( Strings . isNotEmpty ( soundEnabledPreferenceName ) ) { saveInPreferences ( musicPreferences , soundEnabledPreferenceName , soundEnabled ) ; } if ( flush ) { flushPreferences ( ) ; } } }
Saves sound volume and state in preferences .