From 494f646a300e3ca499f5d31cee74dc261f17bdc8 Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Mon, 16 Apr 2012 16:30:14 -0700 Subject: [PATCH] Remove "Searching/Tap To Pair" text from Bluetooth Settings. The second text field next to "Available devices" in the Bluetooth Settings device list creates a cluttered heading that wraps to multiple lines in some locales. It's unnecessary because there's a graphical progress spinner when searching for devices, and "Touch to pair" is easily discoverable. Remove the second text field and the "Searching" and "Touch to pair" string resources. Bug: 5496221 Change-Id: I7b71222415152014426cf54fc112fe5379d350dc --- res/layout/preference_progress_category.xml | 14 +------------- res/values/strings.xml | 4 ---- src/com/android/settings/ProgressCategory.java | 3 --- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/res/layout/preference_progress_category.xml b/res/layout/preference_progress_category.xml index 0a860af8777..ad782f24e3d 100644 --- a/res/layout/preference_progress_category.xml +++ b/res/layout/preference_progress_category.xml @@ -21,7 +21,7 @@ android:orientation="horizontal" > - + - - Pairing\u2026 Unnamed Bluetooth device - - Searching - - Touch to pair No nearby Bluetooth devices were found. diff --git a/src/com/android/settings/ProgressCategory.java b/src/com/android/settings/ProgressCategory.java index c1b25d83b2e..625aa5905a1 100644 --- a/src/com/android/settings/ProgressCategory.java +++ b/src/com/android/settings/ProgressCategory.java @@ -36,13 +36,10 @@ public class ProgressCategory extends ProgressCategoryBase { @Override public void onBindView(View view) { super.onBindView(view); - final TextView scanning = (TextView) view.findViewById(R.id.scanning_text); final View progressBar = view.findViewById(R.id.scanning_progress); - scanning.setText(mProgress ? R.string.progress_scanning : R.string.progress_tap_to_pair); boolean noDeviceFound = (getPreferenceCount() == 0 || (getPreferenceCount() == 1 && getPreference(0) == mNoDeviceFoundPreference)); - scanning.setVisibility(noDeviceFound ? View.GONE : View.VISIBLE); progressBar.setVisibility(mProgress ? View.VISIBLE : View.GONE); if (mProgress || !noDeviceFound) {