From 64ab5338cb0f90f8ee0787b0b98611670e6dee7e Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Tue, 27 Apr 2010 12:36:33 -0700 Subject: [PATCH] Fix regression in removing settings that aren't relevant for a platform. Bug: 2630695 The PreferenceCategories added into the hierarchy caused removePreference() to not work, since the preferences to be removed were not immediate children of the preference screen. Create empty PreferenceCategory elements and pull the preferences to the same depth as the categories. Change-Id: I34826ea4d84cda0ecab75c66a73febe3d51e7c68 --- res/xml/sound_settings.xml | 192 ++++++++++++++++++++------------------------- 1 file changed, 87 insertions(+), 105 deletions(-) diff --git a/res/xml/sound_settings.xml b/res/xml/sound_settings.xml index 1091b900d6..b800d6210b 100644 --- a/res/xml/sound_settings.xml +++ b/res/xml/sound_settings.xml @@ -20,117 +20,99 @@ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> - - - - - - - - + android:title="@string/sound_category_sound_title"/> + + + + + + + android:title="@string/sound_category_calls_title"/> - - - + - - - - - - + android:title="@string/sound_category_notification_title"/> + + + + + + - - - - - - - - - - - - + android:title="@string/sound_category_feedback_title"/> + + + + + + + + + + + + -- 2.11.0