commit | 311a961a9a9f29d365954302202e27b82853485a | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Fri Jun 01 12:02:13 2012 -0700 |
committer | Raph Levien <raph@google.com> | Fri Jun 01 12:02:13 2012 -0700 |
tree | c8a039b75435ca5c62ca67cde9acab2c9ea37938 | |
parent | 561ff8a74e3d9ea15f58d9b6534da9ea5a63d84b [diff] |
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
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 ecdaa39..d40a763 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 @@ } 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;