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

Commit a86b3509 authored by Adam Powell's avatar Adam Powell
Browse files

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

Change-Id: Ia4a4feffb0a77a99e0b241c9cf1d737577d9154d
parent 1cc1a41b
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;