Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4214464 authored by Sunny Shao's avatar Sunny Shao
Browse files

Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the ZenModeBlockedEffectsSettings page.

Fixes: 139258311
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.notification
Change-Id: I0367390ffb27743e394db3108b3992fee1b943a7
parent a520e36d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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">

@@ -57,4 +58,10 @@
           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>
+0 −2
Original line number Diff line number Diff line
@@ -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