summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-07-12 15:01:15 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2011-07-12 15:01:20 -0700
commit6953a6cd8f4f58eb44b8541a518856b1eb42bfca (patch)
tree54eddba525492aa2ff27cf50305ca02d84400be6 /src/com/android/settings
parent76dc6abf0993bb16cb7371fa9474860d18e8f9d3 (diff)
downloadpackages_apps_settings-6953a6cd8f4f58eb44b8541a518856b1eb42bfca.zip
packages_apps_settings-6953a6cd8f4f58eb44b8541a518856b1eb42bfca.tar.gz
packages_apps_settings-6953a6cd8f4f58eb44b8541a518856b1eb42bfca.tar.bz2
Accessibility settings - divider should be hidden
bug:5009004 Change-Id: If69d7a94857308ab07ea78d3c68978449bf333c9
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/SettingsCheckBoxPreference.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/settings/SettingsCheckBoxPreference.java b/src/com/android/settings/SettingsCheckBoxPreference.java
index 6acdfe8..026e4e6 100644
--- a/src/com/android/settings/SettingsCheckBoxPreference.java
+++ b/src/com/android/settings/SettingsCheckBoxPreference.java
@@ -61,16 +61,9 @@ public class SettingsCheckBoxPreference extends CheckBoxPreference {
@Override
protected void onBindView(View view) {
super.onBindView(view);
-
ImageView settingsButton = (ImageView) view.findViewById(R.id.settings_button);
- if (settingsButton == null) {
- return;
- }
if (mSettingsIntent != null) {
CheckBox checkbox = (CheckBox) view.findViewById(com.android.internal.R.id.checkbox);
- if (checkbox == null) {
- return;
- }
if (checkbox.isChecked()) {
settingsButton.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
@@ -86,6 +79,7 @@ public class SettingsCheckBoxPreference extends CheckBoxPreference {
}
} else {
settingsButton.setVisibility(View.GONE);
+ view.findViewById(R.id.divider).setVisibility(View.GONE);
}
}
}