private void initToolbar() { if (mMenuCategory == null) return; mToolbar = (android.widget.Toolbar) findViewById(R.id.toolbar); mToolbar.setTitle(mMenuCategory.getName()); mToolbar.setNavigationOnClickListener(this); if (mSavedStateIsPlaying) // the toolbar should not have more elevation than the content while // playing mToolbar.setElevation(0); }
private void populate() { if (mMenuCategory == null) { Log.w(TAG, "Null mMenuCategory. Finishing"); finish(); } setTheme(mMenuCategory.getTheme().getStyleId()); initLayout(); initToolbar(); }