Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 718b4fd9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev

parents 7b19135c d445aaf1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -641,9 +641,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
        if (previewBefore != null) {
            mPreviewContainer.removeView(previewBefore);
        }
        if (mLeftIsVoiceAssist) {
            mLeftPreview = mPreviewInflater.inflatePreviewFromService(
                    mAssistManager.getVoiceInteractorComponentName());
        ComponentName voiceInteractorComponentName =
                mAssistManager.getVoiceInteractorComponentName();
        if (mLeftIsVoiceAssist && voiceInteractorComponentName != null) {
            mLeftPreview = mPreviewInflater.inflatePreviewFromService(voiceInteractorComponentName);
        } else {
            mLeftPreview = mPreviewInflater.inflatePreview(mLeftButton.getIntent());
        }