From 68524cdd8c5c0fdd2a6ea92956eab033f0585dd9 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 1 Jul 2011 13:59:38 +0100 Subject: [PATCH] Remove workaround for wrong search icon in landscape. QSB now has a different asset so this is not needed. Change-Id: If695ed1b76d69dc00a26b943c51823bc66e276ee --- src/com/android/launcher2/Launcher.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 54b7b9c2c1..6157401a3d 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2732,22 +2732,8 @@ public final class Launcher extends Activity (SearchManager) getSystemService(Context.SEARCH_SERVICE); ComponentName activityName = searchManager.getGlobalSearchActivity(); if (activityName != null) { - // In landscape mode on the Phone UI, we only have enough space to show the magnifying - // glass icon - boolean iconLoaded = false; - if (!LauncherApplication.isScreenLarge()) { - // TODO-APPS_CUSTOMIZE: Remove when the QSB fixes itself? - int orientation = getResources().getConfiguration().orientation; - if (orientation == Configuration.ORIENTATION_LANDSCAPE) { - searchButton.setImageResource(R.drawable.ic_generic_search); - iconLoaded = true; - sGlobalSearchIcon = null; - } - } - if (!iconLoaded) { - sGlobalSearchIcon = updateButtonWithIconFromExternalActivity( - R.id.search_button, activityName, R.drawable.ic_generic_search); - } + sGlobalSearchIcon = updateButtonWithIconFromExternalActivity( + R.id.search_button, activityName, R.drawable.ic_generic_search); searchButton.setVisibility(View.VISIBLE); searchDivider.setVisibility(View.VISIBLE); } else {