Merge "Fix issue with manual touch dispatch" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fb45603fe
@@ -847,6 +847,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
}
|
}
|
||||||
mHeadsUpAppearanceController = new HeadsUpAppearanceController(
|
mHeadsUpAppearanceController = new HeadsUpAppearanceController(
|
||||||
mNotificationIconAreaController, mHeadsUpManager, mStatusBarWindow);
|
mNotificationIconAreaController, mHeadsUpManager, mStatusBarWindow);
|
||||||
|
mStatusBarWindow.setStatusBarView(mStatusBarView);
|
||||||
setAreThereNotifications();
|
setAreThereNotifications();
|
||||||
checkBarModes();
|
checkBarModes();
|
||||||
}).getFragmentManager()
|
}).getFragmentManager()
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ public class StatusBarWindowView extends FrameLayout {
|
|||||||
private NotificationStackScrollLayout mStackScrollLayout;
|
private NotificationStackScrollLayout mStackScrollLayout;
|
||||||
private NotificationPanelView mNotificationPanel;
|
private NotificationPanelView mNotificationPanel;
|
||||||
private View mBrightnessMirror;
|
private View mBrightnessMirror;
|
||||||
|
private PhoneStatusBarView mStatusBarView;
|
||||||
|
|
||||||
private int mRightInset = 0;
|
private int mRightInset = 0;
|
||||||
private int mLeftInset = 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) {
|
public void setService(StatusBar service) {
|
||||||
mService = service;
|
mService = service;
|
||||||
setDragDownHelper(new DragDownHelper(getContext(), this, mStackScrollLayout, mService));
|
setDragDownHelper(new DragDownHelper(getContext(), this, mStackScrollLayout, mService));
|
||||||
@@ -326,7 +331,7 @@ public class StatusBarWindowView extends FrameLayout {
|
|||||||
expandingBelowNotch = true;
|
expandingBelowNotch = true;
|
||||||
}
|
}
|
||||||
if (expandingBelowNotch) {
|
if (expandingBelowNotch) {
|
||||||
return mNotificationPanel.dispatchTouchEvent(ev);
|
return mStatusBarView.dispatchTouchEvent(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.dispatchTouchEvent(ev);
|
return super.dispatchTouchEvent(ev);
|
||||||
|
|||||||
Reference in New Issue
Block a user