This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* solve overflow menu icon not showing bug on {@link android.support.v7.widget.Toolbar} | |
* | |
* @see <a href="http://stackoverflow.com/questions/30076392/how-does-this-strange-condition | |
* -happens-when-show-menu-item-icon-in-toolbar-over">StackOverflow question<a/> | |
*/ | |
@Override | |
protected boolean onPrepareOptionsPanel(View view, Menu menu) { | |
if (menu != null) { | |
if (menu.getClass().getSimpleName().equals("MenuBuilder")) { |