Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 025ac537 authored by Chris Banes's avatar Chris Banes Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in ActionMenuView when there isn't a presenter"

parents c643dda2 5cd13265
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -116,13 +116,16 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);

        if (mPresenter != null) {
            mPresenter.updateMenuView(false);

        if (mPresenter != null && mPresenter.isOverflowMenuShowing()) {
            if (mPresenter.isOverflowMenuShowing()) {
                mPresenter.hideOverflowMenu();
                mPresenter.showOverflowMenu();
            }
        }
    }

    public void setOnMenuItemClickListener(OnMenuItemClickListener listener) {
        mOnMenuItemClickListener = listener;