aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-15 20:12:54 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-15 20:12:54 -0800
commitcd85df20ccec8ac59479f5c472d895bb83f7995d (patch)
tree5d9e0f7c98dc4940a6a4adf2aa03c1cb2ae7c83c /app
parentd77bbd8f2f14c07d43727698d27b458234392657 (diff)
downloaddsub-cd85df20ccec8ac59479f5c472d895bb83f7995d.tar.gz
dsub-cd85df20ccec8ac59479f5c472d895bb83f7995d.tar.bz2
dsub-cd85df20ccec8ac59479f5c472d895bb83f7995d.zip
Fix actionbar spinner icon being right next to it
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java2
1 files changed, 1 insertions, 1 deletions
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);