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

Commit 52472704 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Collapse the overflow view when swiping back

Fixes: 293355231
Test: Manual
       - Add a bubble to the bubble bar
       - Expand the bubble bar and select the overflow bubble
       - Perform back gesture
       - Observe that the overflow view is removed and the bubble bar collapsed
Change-Id: I033f88287f8d1927593ed6dc4129615399e71e92
parent 40383d79
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -817,13 +817,17 @@ public class BubbleController implements ConfigurationChangeListener,
     * @param interceptBack whether back should be intercepted or not.
     */
    void updateWindowFlagsForBackpress(boolean interceptBack) {
        if (mStackView != null && mAddedToWindowManager) {
        if (mAddedToWindowManager) {
            mWmLayoutParams.flags = interceptBack
                    ? 0
                    : WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                            | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL;
            mWmLayoutParams.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
            if (mStackView != null) {
                mWindowManager.updateViewLayout(mStackView, mWmLayoutParams);
            } else if (mLayerView != null) {
                mWindowManager.updateViewLayout(mLayerView, mWmLayoutParams);
            }
        }
    }