Merge "Remove workaround for wrong search icon in landscape."

This commit is contained in:
Mathew Inwood authored and Android (Google) Code Review committed 2011-07-04 01:50:26 -07:00
commit d5dd2fbb3c
1 file changed
+2 -16
+2 -16
View File
@@ -2748,22 +2748,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 {