Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
718b4fd970
@@ -641,9 +641,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
|||||||
if (previewBefore != null) {
|
if (previewBefore != null) {
|
||||||
mPreviewContainer.removeView(previewBefore);
|
mPreviewContainer.removeView(previewBefore);
|
||||||
}
|
}
|
||||||
if (mLeftIsVoiceAssist) {
|
ComponentName voiceInteractorComponentName =
|
||||||
mLeftPreview = mPreviewInflater.inflatePreviewFromService(
|
mAssistManager.getVoiceInteractorComponentName();
|
||||||
mAssistManager.getVoiceInteractorComponentName());
|
if (mLeftIsVoiceAssist && voiceInteractorComponentName != null) {
|
||||||
|
mLeftPreview = mPreviewInflater.inflatePreviewFromService(voiceInteractorComponentName);
|
||||||
} else {
|
} else {
|
||||||
mLeftPreview = mPreviewInflater.inflatePreview(mLeftButton.getIntent());
|
mLeftPreview = mPreviewInflater.inflatePreview(mLeftButton.getIntent());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user