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

Commit b9e5421a authored by Matthew Mourgos's avatar Matthew Mourgos Committed by Android (Google) Code Review
Browse files

Merge "Close any open widget resize frames when changing pages." into main

parents 27fc554d 450fb42e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.launcher3;

import static com.android.launcher3.AbstractFloatingView.TYPE_WIDGET_RESIZE_FRAME;
import static com.android.launcher3.BubbleTextView.DISPLAY_FOLDER;
import static com.android.launcher3.Flags.enableSmartspaceRemovalToggle;
import static com.android.launcher3.LauncherAnimUtils.SPRING_LOADED_EXIT_DELAY;
@@ -1222,6 +1223,10 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
    }

    protected void onPageBeginTransition() {
        // Widget resize frame doesn't receive events to close when talkback is enabled. For that
        // case, close it here.
        AbstractFloatingView.closeOpenViews(mLauncher, false, TYPE_WIDGET_RESIZE_FRAME);

        super.onPageBeginTransition();
        updateChildrenLayersEnabled();
    }