diff options
| author | 2015-08-18 18:33:49 -0700 | |
|---|---|---|
| committer | 2015-08-19 01:34:33 +0000 | |
| commit | 8b8fa3e934e3ddf01790e647b4401dc88b24bf67 (patch) | |
| tree | b5b4beca47e5692c7bf07a88ba188c3114126886 | |
| parent | f610bd78b2cf574faa197ed9f21128ac7795a407 (diff) | |
Fix SysUI crash when no metadata is provided
Bug: 23327474
Change-Id: I4903c0812c9677e1b31e1f645e3d6f1a03150c38
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java index 9af8ab7aa7ee..1a2fa9726414 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java @@ -376,7 +376,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL Intent intent = getCameraIntent(); ActivityInfo targetInfo = PreviewInflater.getTargetActivityInfo(mContext, intent, KeyguardUpdateMonitor.getCurrentUser()); - if (targetInfo != null) { + if (targetInfo != null && targetInfo.metaData != null) { String clazz = targetInfo.metaData.getString( MediaStore.META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE); if (clazz != null) { |