OSDN Git Service

Fix NPE for devices that don't use a lock icon on the bouncer.
authorBrad Stenning <stenning@google.com>
Mon, 22 Apr 2019 16:30:20 +0000 (09:30 -0700)
committerBrad Stenning <stenning@google.com>
Mon, 22 Apr 2019 16:32:17 +0000 (16:32 +0000)
Bug: 130880522
Bug: 131083319
Test: Manual
Change-Id: I630f4df96b64a85d3b45fb95b28ed8e33b38ca1c

packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java

index 6101593..ebafb81 100644 (file)
@@ -693,6 +693,9 @@ public class KeyguardIndicationController implements StateListener {
 
         @Override
         public void onKeyguardBouncerChanged(boolean bouncer) {
+            if (mLockIcon == null) {
+                return;
+            }
             mLockIcon.setBouncerVisible(bouncer);
         }
     };