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

Commit 45611dd8 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix issue with manual touch dispatch

Need to dispatch it to the view that guards against the disabled
flags.

Change-Id: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Merged-In: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Fixes: 110228458
Test: Expand above notch from SUW
parent bbe6ee06
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -847,6 +847,7 @@ public class StatusBar extends SystemUI implements DemoMode,
                    }
                    mHeadsUpAppearanceController = new HeadsUpAppearanceController(
                            mNotificationIconAreaController, mHeadsUpManager, mStatusBarWindow);
                    mStatusBarWindow.setStatusBarView(mStatusBarView);
                    setAreThereNotifications();
                    checkBarModes();
                }).getFragmentManager()
+6 −1
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class StatusBarWindowView extends FrameLayout {
    private NotificationStackScrollLayout mStackScrollLayout;
    private NotificationPanelView mNotificationPanel;
    private View mBrightnessMirror;
    private PhoneStatusBarView mStatusBarView;

    private int mRightInset = 0;
    private int mLeftInset = 0;
@@ -204,6 +205,10 @@ public class StatusBarWindowView extends FrameLayout {
        }
    }

    public void setStatusBarView(PhoneStatusBarView statusBarView) {
        mStatusBarView = statusBarView;
    }

    public void setService(StatusBar service) {
        mService = service;
        setDragDownHelper(new DragDownHelper(getContext(), this, mStackScrollLayout, mService));
@@ -326,7 +331,7 @@ public class StatusBarWindowView extends FrameLayout {
            expandingBelowNotch = true;
        }
        if (expandingBelowNotch) {
            return mNotificationPanel.dispatchTouchEvent(ev);
            return mStatusBarView.dispatchTouchEvent(ev);
        }

        return super.dispatchTouchEvent(ev);