Skip to content

Commit d9bb7a8

Browse files
mikejurkaAndroid (Google) Code Review
authored andcommitted
Merge "Fix NPE in Recent Apps"
2 parents 2fdc357 + b144bd7 commit d9bb7a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,14 @@ private boolean pointInside(int x, int y, View v) {
181181
}
182182

183183
public boolean isInContentArea(int x, int y) {
184-
return pointInside(x, y, mRecentsContainer) || pointInside(x, y, mStatusBarTouchProxy);
184+
if (pointInside(x, y, mRecentsContainer)) {
185+
return true;
186+
} else if (mStatusBarTouchProxy != null &&
187+
pointInside(x, y, mStatusBarTouchProxy)) {
188+
return true;
189+
} else {
190+
return false;
191+
}
185192
}
186193

187194
public void show(boolean show, boolean animate) {

0 commit comments

Comments
 (0)