summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/ProgressCategory.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-19 20:46:07 -0700
committerJeff Brown <jeffbrown@google.com>2012-09-19 21:37:20 -0700
commit9e143f5e9d836d2d3dd0b2f59f7d14327ade0193 (patch)
tree4a49bec915eda59800f90a7e22556710e4bff5da /src/com/android/settings/ProgressCategory.java
parent99340f36cb0ed7bf84b0bae418a85132a01acb32 (diff)
downloadpackages_apps_settings-9e143f5e9d836d2d3dd0b2f59f7d14327ade0193.zip
packages_apps_settings-9e143f5e9d836d2d3dd0b2f59f7d14327ade0193.tar.gz
packages_apps_settings-9e143f5e9d836d2d3dd0b2f59f7d14327ade0193.tar.bz2
First draft of wifi display settings UI.
All of the functionality is in place but the UI is not fully polished yet. Bug: 7178216 Change-Id: Id76843bff05cc71e5c02a31bc97c7070d58fff10
Diffstat (limited to 'src/com/android/settings/ProgressCategory.java')
-rw-r--r--src/com/android/settings/ProgressCategory.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/settings/ProgressCategory.java b/src/com/android/settings/ProgressCategory.java
index 625aa59..6fe34bf 100644
--- a/src/com/android/settings/ProgressCategory.java
+++ b/src/com/android/settings/ProgressCategory.java
@@ -20,17 +20,19 @@ import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.View;
-import android.widget.TextView;
public class ProgressCategory extends ProgressCategoryBase {
+ private final int mEmptyTextRes;
private boolean mProgress = false;
private Preference mNoDeviceFoundPreference;
private boolean mNoDeviceFoundAdded;
- public ProgressCategory(Context context, AttributeSet attrs) {
+ public ProgressCategory(Context context, AttributeSet attrs,
+ int emptyTextRes) {
super(context, attrs);
setLayoutResource(R.layout.preference_progress_category);
+ mEmptyTextRes = emptyTextRes;
}
@Override
@@ -52,7 +54,7 @@ public class ProgressCategory extends ProgressCategoryBase {
if (mNoDeviceFoundPreference == null) {
mNoDeviceFoundPreference = new Preference(getContext());
mNoDeviceFoundPreference.setLayoutResource(R.layout.preference_empty_list);
- mNoDeviceFoundPreference.setTitle(R.string.bluetooth_no_devices_found);
+ mNoDeviceFoundPreference.setTitle(mEmptyTextRes);
mNoDeviceFoundPreference.setSelectable(false);
}
addPreference(mNoDeviceFoundPreference);