OSDN Git Service

Use FooterPreference in xml explicitly
authorSunny Shao <sunnyshao@google.com>
Mon, 12 Aug 2019 04:09:39 +0000 (12:09 +0800)
committerSunny Shao <sunnyshao@google.com>
Mon, 12 Aug 2019 04:09:39 +0000 (12:09 +0800)
Removed the FooterPreferenceMixin from the ZenModeBlockedEffectsSettings page.

Fixes: 139258311
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.notification
Change-Id: I0367390ffb27743e394db3108b3992fee1b943a7

res/xml/zen_mode_block_settings.xml
src/com/android/settings/notification/ZenModeBlockedEffectsSettings.java

index cccc63c..1b04fb8 100644 (file)
@@ -17,6 +17,7 @@
 
 <PreferenceScreen
     xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:settings="http://schemas.android.com/apk/res-auto"
     android:key="zen_mode_block_settings_page"
     android:title="@string/zen_mode_what_to_block_title">
 
            android:title="@string/zen_mode_block_effect_list" />
    </PreferenceCategory>
 
+    <com.android.settingslib.widget.FooterPreference
+        android:key="zen_mode_block_footer"
+        android:title="@string/zen_mode_blocked_effects_footer"
+        android:selectable="false"
+        settings:searchable="false"/>
+
 </PreferenceScreen>
index 613bd35..9cb3f59 100644 (file)
@@ -45,8 +45,6 @@ public class ZenModeBlockedEffectsSettings extends ZenModeSettingsBase implement
     @Override
     public void onCreate(Bundle icicle) {
         super.onCreate(icicle);
-        mFooterPreferenceMixin.createFooterPreference().setTitle(
-                R.string.zen_mode_blocked_effects_footer);
     }
 
     @Override