Skip to content

Commit 311a961

Browse files
committed
Fix bug 6596440: NPE when pulling down notification window
Pulling down the notification window set the navigation bar view to "slippery", but this view is NULL on some devices such as Crespo. The fix simply makes it a no-op in this case. Change-Id: I720a257c1715febda5932d50906c5dddbca2b312
1 parent 561ff8a commit 311a961

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,9 @@ private void makeExpandedVisible() {
10541054
}
10551055

10561056
private static void makeSlippery(View view, boolean slippery) {
1057+
if (view == null) {
1058+
return;
1059+
}
10571060
WindowManager.LayoutParams lp = (WindowManager.LayoutParams) view.getLayoutParams();
10581061
if (slippery) {
10591062
lp.flags |= WindowManager.LayoutParams.FLAG_SLIPPERY;

0 commit comments

Comments
 (0)