Fixed popup menu background color

This commit is contained in:
Moez Bhatti
2015-12-07 12:26:42 -05:00
parent 224fbaffa0
commit a126dcf70c
4 changed files with 21 additions and 2 deletions
@@ -358,12 +358,18 @@ public class ThemeManager {
sTextOnBackgroundPrimary = sResources.getColor(R.color.theme_light_text_primary);
sTextOnBackgroundSecondary = sResources.getColor(R.color.theme_light_text_secondary);
sRippleBackground = sResources.getDrawable(R.drawable.button_background_transparent);
if (mActivity != null) {
mActivity.getToolbar().setPopupTheme(R.style.PopupThemeLight);
}
break;
case GREY:
case BLACK:
sTextOnBackgroundPrimary = sResources.getColor(R.color.theme_dark_text_primary);
sTextOnBackgroundSecondary = sResources.getColor(R.color.theme_dark_text_secondary);
sRippleBackground = sResources.getDrawable(R.drawable.button_background_transparent_light);
if (mActivity != null) {
mActivity.getToolbar().setPopupTheme(R.style.PopupTheme);
}
break;
}
@@ -67,6 +67,7 @@ public abstract class QKActivity extends ActionBarActivity {
if (mToolbar == null) {
throw new RuntimeException("Toolbar not found in BaseActivity layout.");
} else {
mToolbar.setPopupTheme(R.style.PopupTheme);
mTitle = (QKTextView) mToolbar.findViewById(R.id.toolbar_title);
setSupportActionBar(mToolbar);
}
@@ -216,7 +217,7 @@ public abstract class QKActivity extends ActionBarActivity {
*
* @return
*/
protected Toolbar getToolbar() {
public Toolbar getToolbar() {
return mToolbar;
}