Optimize conditional
This commit is contained in:
parent
e7953958da
commit
c7f1fa8665
|
@ -324,11 +324,10 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
|
||||||
menu.findItem(R.id.menu_save_playlist).setEnabled(false);
|
menu.findItem(R.id.menu_save_playlist).setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (downloadService != null && downloadService.isRemovePlayed()) {
|
if (downloadService != null) {
|
||||||
|
if (downloadService.isRemovePlayed()) {
|
||||||
menu.findItem(R.id.menu_remove_played).setChecked(true);
|
menu.findItem(R.id.menu_remove_played).setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (downloadService != null) {
|
|
||||||
SharedPreferences prefs = Util.getPreferences(context);
|
SharedPreferences prefs = Util.getPreferences(context);
|
||||||
boolean equalizerOn = prefs.getBoolean(Constants.PREFERENCES_EQUALIZER_ON, false);
|
boolean equalizerOn = prefs.getBoolean(Constants.PREFERENCES_EQUALIZER_ON, false);
|
||||||
if (equalizerOn) {
|
if (equalizerOn) {
|
||||||
|
|
Loading…
Reference in New Issue