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

Commit 712079a6 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 4329016 - Refresh menus properly while in batch update mode"

parents bf96c356 a86b3509
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -814,9 +814,11 @@ public class MenuBuilder implements Menu {
     * many menu operations are going to be performed as a batch.
     */
    public void stopDispatchingItemsChanged() {
        if (!mPreventDispatchingItemsChanged) {
            mPreventDispatchingItemsChanged = true;
            mItemsChangedWhileDispatchPrevented = false;
        }
    }

    public void startDispatchingItemsChanged() {
        mPreventDispatchingItemsChanged = false;