diff options
| author | 2015-10-19 17:23:23 +0000 | |
|---|---|---|
| committer | 2015-10-19 17:23:23 +0000 | |
| commit | c76b65e723b661f942248b273e6492268a8e93e6 (patch) | |
| tree | b7fbb3f48818a44b6465070178ba178803b23aac | |
| parent | 39d78ddb524080bc2066fb7568fec71eb9d59d5b (diff) | |
| parent | c99243aff8f039734fcc9af93f6854c3838796cf (diff) | |
Merge "Fix: input source comparison -> MotionEvent.isFromSource"
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 76edafa2bed0..ebe77853c1b2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -229,7 +229,7 @@ public abstract class PanelView extends FrameLayout { } // On expanding, single mouse click expands the panel instead of dragging. - if (isFullyCollapsed() && event.getDevice().getSources() == InputDevice.SOURCE_MOUSE) { + if (isFullyCollapsed() && event.isFromSource(InputDevice.SOURCE_MOUSE)) { if (event.getAction() == MotionEvent.ACTION_UP) { expand(true); } |