From 1920554a87189a8a521a9c9959a2c54da02ec419 Mon Sep 17 00:00:00 2001 From: Raj Yengisetty Date: Fri, 16 Jan 2015 12:25:21 +0800 Subject: Disable voice button proxy when there is no voice search Change-Id: I54549b4c69cec5811ab261ac1213b9b4e67e8551 (cherry picked from commit 7900b8dc9c6119789cfcd374b3f18b67ac003605) --- src/com/android/launcher3/Launcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 041d21bd3..2e564c4c8 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -4359,7 +4359,7 @@ public class Launcher extends Activity if (voiceButtonContainer != null) voiceButtonContainer.setVisibility(View.GONE); if (searchButton != null) searchButton.setVisibility(View.GONE); if (voiceButton != null) voiceButton.setVisibility(View.GONE); - updateVoiceButtonProxyVisible(false); + updateVoiceButtonProxyVisible(true); return false; } } @@ -4412,7 +4412,7 @@ public class Launcher extends Activity } else { if (voiceButtonContainer != null) voiceButtonContainer.setVisibility(View.GONE); if (voiceButton != null) voiceButton.setVisibility(View.GONE); - updateVoiceButtonProxyVisible(false); + updateVoiceButtonProxyVisible(true); return false; } } -- cgit v1.2.3