* commit 'b960e75e52176bc4edc709aba71535b32e2d9970': Fix SysUI crash when no metadata is provided
This commit is contained in:
@@ -374,7 +374,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
|||||||
Intent intent = getCameraIntent();
|
Intent intent = getCameraIntent();
|
||||||
ActivityInfo targetInfo = PreviewInflater.getTargetActivityInfo(mContext, intent,
|
ActivityInfo targetInfo = PreviewInflater.getTargetActivityInfo(mContext, intent,
|
||||||
KeyguardUpdateMonitor.getCurrentUser());
|
KeyguardUpdateMonitor.getCurrentUser());
|
||||||
if (targetInfo != null) {
|
if (targetInfo != null && targetInfo.metaData != null) {
|
||||||
String clazz = targetInfo.metaData.getString(
|
String clazz = targetInfo.metaData.getString(
|
||||||
MediaStore.META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE);
|
MediaStore.META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE);
|
||||||
if (clazz != null) {
|
if (clazz != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user