public void saveMusicPreferences ( final boolean flush ) { if ( Strings . isNotEmpty ( musicPreferences ) ) { if ( Strings . isNotEmpty ( musicVolumePreferenceName ) ) { saveInPreferences ( musicPreferences , musicVolumePreferenceName , musicVolume ) ; } if ( Strings . isNotEmpty ( musicEnabledPreferenceName ) ) { saveInPreferences ( musicPreferences , musicEnabledPreferenceName , musicEnabled ) ; } if ( flush ) { flushPreferences ( ) ; } } }
Saves music volume and state in preferences .