Merge "Fix bug 5189070 - Don't try to show overflow popups for nonexistant menus"
This commit is contained in:
@@ -252,7 +252,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter {
|
|||||||
* @return true if the overflow menu was shown, false otherwise.
|
* @return true if the overflow menu was shown, false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean showOverflowMenu() {
|
public boolean showOverflowMenu() {
|
||||||
if (mReserveOverflow && !isOverflowMenuShowing() && mMenuView != null &&
|
if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null &&
|
||||||
mPostedOpenRunnable == null) {
|
mPostedOpenRunnable == null) {
|
||||||
OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true);
|
OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true);
|
||||||
mPostedOpenRunnable = new OpenOverflowRunnable(popup);
|
mPostedOpenRunnable = new OpenOverflowRunnable(popup);
|
||||||
|
|||||||
Reference in New Issue
Block a user