From b144bd75b868198b64881f92c77afd2928fb061a Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 12 Jan 2012 06:56:39 -0800 Subject: [PATCH] Fix NPE in Recent Apps Change-Id: I936e053a806a1cbf9ac98fb5707d34924c94ff60 --- .../com/android/systemui/recent/RecentsPanelView.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {