summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/ProgressCategory.java
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-04-16 16:30:14 -0700
committerJake Hamby <jhamby@google.com>2012-04-16 16:34:01 -0700
commit494f646a300e3ca499f5d31cee74dc261f17bdc8 (patch)
treeb022cd77bc2bc2d3fee931d247bcacdfc5b02794 /src/com/android/settings/ProgressCategory.java
parentafdadec674f061300d031c68a0e091f2c1f11c70 (diff)
downloadpackages_apps_settings-494f646a300e3ca499f5d31cee74dc261f17bdc8.zip
packages_apps_settings-494f646a300e3ca499f5d31cee74dc261f17bdc8.tar.gz
packages_apps_settings-494f646a300e3ca499f5d31cee74dc261f17bdc8.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/ProgressCategory.java')
-rw-r--r--src/com/android/settings/ProgressCategory.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/settings/ProgressCategory.java b/src/com/android/settings/ProgressCategory.java
index c1b25d8..625aa59 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) {