diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-12-29 17:34:08 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-12-29 17:34:08 -0800 |
commit | 5ea1b72af8447c246bcce0bbfd11c24b2e949c8d (patch) | |
tree | 512313abcb04c3c6289a908b516dabfe94401d28 /app/src/main/java/github | |
parent | b2b5439d1faa8ed5f095404df003f0d70ddf3236 (diff) | |
download | dsub-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.java | 5 |
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 |