aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-12-29 17:34:08 -0800
committerScott Jackson <daneren2005@gmail.com>2015-12-29 17:34:08 -0800
commit5ea1b72af8447c246bcce0bbfd11c24b2e949c8d (patch)
tree512313abcb04c3c6289a908b516dabfe94401d28 /app/src/main/java/github
parentb2b5439d1faa8ed5f095404df003f0d70ddf3236 (diff)
downloaddsub-5ea1b72af8447c246bcce0bbfd11c24b2e949c8d.tar.gz
dsub-5ea1b72af8447c246bcce0bbfd11c24b2e949c8d.tar.bz2
dsub-5ea1b72af8447c246bcce0bbfd11c24b2e949c8d.zip
Fix spinner dropdown being ontop of the spinner
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java5
1 files changed, 2 insertions, 3 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 a0b52a87..f9c14439 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -189,8 +189,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
}
protected void createCustomActionBarView() {
- View customActionbar = getLayoutInflater().inflate(R.layout.actionbar_spinner, null);
- actionBarSpinner = (Spinner)customActionbar.findViewById(R.id.spinner);
+ actionBarSpinner = (Spinner) getLayoutInflater().inflate(R.layout.actionbar_spinner, null);
if(Util.getThemeRes(this) == R.style.Theme_DSub_Light_No_Actionbar) {
actionBarSpinner.setBackgroundResource(R.drawable.abc_spinner_mtrl_am_alpha);
}
@@ -199,7 +198,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
actionBarSpinner.setOnItemSelectedListener(this);
actionBarSpinner.setAdapter(spinnerAdapter);
- getSupportActionBar().setCustomView(customActionbar);
+ getSupportActionBar().setCustomView(actionBarSpinner);
}
@Override