Loading src/com/android/launcher3/Launcher.java +6 −1 Original line number Diff line number Diff line Loading @@ -338,6 +338,8 @@ public class Launcher extends Activity private boolean mHasFocus = false; private boolean mAttached = false; private boolean mShouldShowVoice = false; private static LocaleConfiguration sLocaleConfiguration = null; private static HashMap<Long, FolderInfo> sFolders = new HashMap<Long, FolderInfo>(); Loading Loading @@ -4407,6 +4409,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); mShouldShowVoice = false; updateVoiceButtonProxyVisible(true); return false; } Loading Loading @@ -4456,10 +4459,12 @@ public class Launcher extends Activity voiceButton.setVisibility(View.VISIBLE); updateVoiceButtonProxyVisible(false); invalidatePressedFocusedStates(voiceButtonContainer, voiceButton); mShouldShowVoice = true; return true; } else { if (voiceButtonContainer != null) voiceButtonContainer.setVisibility(View.GONE); if (voiceButton != null) voiceButton.setVisibility(View.GONE); mShouldShowVoice = false; updateVoiceButtonProxyVisible(true); return false; } Loading @@ -4476,7 +4481,7 @@ public class Launcher extends Activity final View voiceButtonProxy = findViewById(R.id.voice_button_proxy); if (voiceButtonProxy != null) { boolean visible = !forceDisableVoiceButtonProxy && mWorkspace.shouldVoiceButtonProxyBeVisible(); mWorkspace.shouldVoiceButtonProxyBeVisible() && mShouldShowVoice; voiceButtonProxy.setVisibility(visible ? View.VISIBLE : View.GONE); voiceButtonProxy.bringToFront(); } Loading Loading
src/com/android/launcher3/Launcher.java +6 −1 Original line number Diff line number Diff line Loading @@ -338,6 +338,8 @@ public class Launcher extends Activity private boolean mHasFocus = false; private boolean mAttached = false; private boolean mShouldShowVoice = false; private static LocaleConfiguration sLocaleConfiguration = null; private static HashMap<Long, FolderInfo> sFolders = new HashMap<Long, FolderInfo>(); Loading Loading @@ -4407,6 +4409,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); mShouldShowVoice = false; updateVoiceButtonProxyVisible(true); return false; } Loading Loading @@ -4456,10 +4459,12 @@ public class Launcher extends Activity voiceButton.setVisibility(View.VISIBLE); updateVoiceButtonProxyVisible(false); invalidatePressedFocusedStates(voiceButtonContainer, voiceButton); mShouldShowVoice = true; return true; } else { if (voiceButtonContainer != null) voiceButtonContainer.setVisibility(View.GONE); if (voiceButton != null) voiceButton.setVisibility(View.GONE); mShouldShowVoice = false; updateVoiceButtonProxyVisible(true); return false; } Loading @@ -4476,7 +4481,7 @@ public class Launcher extends Activity final View voiceButtonProxy = findViewById(R.id.voice_button_proxy); if (voiceButtonProxy != null) { boolean visible = !forceDisableVoiceButtonProxy && mWorkspace.shouldVoiceButtonProxyBeVisible(); mWorkspace.shouldVoiceButtonProxyBeVisible() && mShouldShowVoice; voiceButtonProxy.setVisibility(visible ? View.VISIBLE : View.GONE); voiceButtonProxy.bringToFront(); } Loading