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); }