diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 4b083136a1e97..5939ae66e3bcf 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -222,6 +222,15 @@ public abstract class PanelView extends FrameLayout { return false; } + // On expanding, single mouse click expands the panel instead of dragging. + if (isFullyCollapsed() && event.getPointerCount() == 1 + && event.getToolType(0) == MotionEvent.TOOL_TYPE_MOUSE) { + if (event.getAction() == MotionEvent.ACTION_UP) { + expand(true); + } + return true; + } + /* * We capture touch events here and update the expand height here in case according to * the users fingers. This also handles multi-touch.