From cd85df20ccec8ac59479f5c472d895bb83f7995d Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 15 Jan 2016 20:12:54 -0800 Subject: Fix actionbar spinner icon being right next to it --- .../main/java/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index 793d976f..6da9f548 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -190,7 +190,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte protected void createCustomActionBarView() { actionBarSpinner = (Spinner) getLayoutInflater().inflate(R.layout.actionbar_spinner, null); - if(Util.getThemeRes(this) == R.style.Theme_DSub_Light_No_Actionbar) { + if((this instanceof SubsonicFragmentActivity || this instanceof SettingsActivity) && (Util.getPreferences(this).getBoolean(Constants.PREFERENCES_KEY_COLOR_ACTION_BAR, true) || Util.getThemeRes(this) != R.style.Theme_DSub_Light_No_Color)) { actionBarSpinner.setBackgroundResource(R.drawable.abc_spinner_mtrl_am_alpha); } spinnerAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item); -- cgit v1.2.3