From 6ef5898793ea5cda3767c219bd8a2c564991747c Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Tue, 30 Jun 2015 11:41:32 -0700 Subject: [PATCH] Don't show orb when voice session is already running Bug: 22195186 Change-Id: I7839536d2f6362889a924b65011d80556f0176b8 --- .../src/com/android/systemui/assist/AssistManager.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java b/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java index 6ba56263c3aea..51d0bf192ac28 100644 --- a/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java +++ b/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java @@ -131,7 +131,7 @@ public class AssistManager { } final boolean isService = isAssistantService(); - if (isService || !isVoiceSessionRunning()) { + if (!isService || !isVoiceSessionRunning()) { showOrb(); mView.postDelayed(mHideRunnable, isService ? TIMEOUT_SERVICE @@ -227,10 +227,6 @@ public class AssistManager { mAssistUtils.launchVoiceAssistFromKeyguard(); } - private boolean getVoiceInteractorSupportsAssistGesture() { - return mAssistUtils.activeServiceSupportsAssistGesture(); - } - public boolean canVoiceAssistBeLaunchedFromKeyguard() { return mAssistUtils.activeServiceSupportsLaunchFromKeyguard(); }