From 311a961a9a9f29d365954302202e27b82853485a Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Fri, 1 Jun 2012 12:02:13 -0700 Subject: [PATCH] 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 --- .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index ecdaa39780cfc..d40a7636c7773 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1054,6 +1054,9 @@ public class PhoneStatusBar extends BaseStatusBar { } private static void makeSlippery(View view, boolean slippery) { + if (view == null) { + return; + } WindowManager.LayoutParams lp = (WindowManager.LayoutParams) view.getLayoutParams(); if (slippery) { lp.flags |= WindowManager.LayoutParams.FLAG_SLIPPERY;