Fix SysUI crash when no metadata is provided
Bug: 23327474 Change-Id: I4903c0812c9677e1b31e1f645e3d6f1a03150c38
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user