diff options
author | Winson Chung <winsonc@google.com> | 2011-08-23 11:58:54 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-08-23 14:58:00 -0700 |
commit | cbf7c4d50ce2609518640c3f590f6df435edabae (patch) | |
tree | 3faec505e21ed3193ad7864581b931e22905a081 /src/com/android/launcher2/Launcher.java | |
parent | 0b48076529aa3710a2d9e35ae1cb391f77d897ae (diff) | |
download | packages_apps_trebuchet-cbf7c4d50ce2609518640c3f590f6df435edabae.zip packages_apps_trebuchet-cbf7c4d50ce2609518640c3f590f6df435edabae.tar.gz packages_apps_trebuchet-cbf7c4d50ce2609518640c3f590f6df435edabae.tar.bz2 |
Hiding search bar buttons when qsb is disabled. (5187969, 5201453)
Change-Id: I23cbfac5c1a8f96eb8158fd30a1fb335b044d49c
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 44dbc15..b42a6f7 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2486,6 +2486,7 @@ public final class Launcher extends Activity private void updateGlobalSearchIcon() { final ImageView searchButton = (ImageView) findViewById(R.id.search_button); final View searchDivider = findViewById(R.id.search_divider); + final View voiceButton = findViewById(R.id.voice_button); final SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); @@ -2496,8 +2497,10 @@ public final class Launcher extends Activity searchButton.setVisibility(View.VISIBLE); if (searchDivider != null) searchDivider.setVisibility(View.VISIBLE); } else { + // We disable both search and voice search when there is no global search provider searchButton.setVisibility(View.GONE); if (searchDivider != null) searchDivider.setVisibility(View.GONE); + voiceButton.setVisibility(View.GONE); } } |