diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index 4aec22c9bbc77..24744b56ea33a 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -181,7 +181,14 @@ public class RecentsPanelView extends RelativeLayout implements OnItemClickListe } public boolean isInContentArea(int x, int y) { - return pointInside(x, y, mRecentsContainer) || pointInside(x, y, mStatusBarTouchProxy); + if (pointInside(x, y, mRecentsContainer)) { + return true; + } else if (mStatusBarTouchProxy != null && + pointInside(x, y, mStatusBarTouchProxy)) { + return true; + } else { + return false; + } } public void show(boolean show, boolean animate) {