summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorDanesh Mondegarian <daneshm90@gmail.com>2014-02-13 21:58:48 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-12-23 21:43:52 +0000
commit99840f48519809b6b390d53d0378fa4eece0496c (patch)
tree3faf693c8e25bc242a2bb124944d49f6f0a02f8c /src/com/android/launcher3/Launcher.java
parentaed08787684b6351082c3a1bfbec2c54d365ee2b (diff)
downloadandroid_packages_apps_Trebuchet-99840f48519809b6b390d53d0378fa4eece0496c.tar.gz
android_packages_apps_Trebuchet-99840f48519809b6b390d53d0378fa4eece0496c.tar.bz2
android_packages_apps_Trebuchet-99840f48519809b6b390d53d0378fa4eece0496c.zip
Trebuchet : Fix search bar icon/text disapearing
Repro : 1. Uninstall an application from the app drawer 2. Press back to go to homescreen. 3. The search bar icon/text should be invisible now. Trebuchet : Avoid unecessary generatePressedFocusedStates When the drawable's state changes, don't generate state drawables until after the invalidate call, which takes care of this already, otherwise it gets drawn before measure/layout gets a chance to run. Change-Id: I49933e6d985aab9fff9f05092e007e46991a8edf
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 3ce4a57fc..041d21bd3 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -4338,7 +4338,7 @@ public class Launcher extends Activity
final SearchManager searchManager =
(SearchManager) getSystemService(Context.SEARCH_SERVICE);
ComponentName activityName = searchManager.getGlobalSearchActivity();
- if (activityName != null && mWorkspace.shouldVoiceButtonProxyBeVisible()) {
+ if (activityName != null) {
int coi = getCurrentOrientationIndexForGlobalIcons();
sGlobalSearchIcon[coi] = updateButtonWithIconFromExternalActivity(
R.id.search_button, activityName, R.drawable.ic_home_search_normal_holo,