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

Commit 343c39fa authored by Sunny Shao's avatar Sunny Shao
Browse files

Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the AdaptiveSleepSettings page.

Fixes: 138965988
Test: manual test
Change-Id: If6fba673af304d8522f3b01ac6607cd8a7ead747
parent b843707e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -45,4 +45,11 @@
        settings:useAdminDisabledSummary="true"
        settings:allowDividerAbove="true" />

    <com.android.settingslib.widget.FooterPreference
        android:key="adaptive_sleep_footer"
        android:title="@string/adaptive_sleep_privacy"
        android:icon="@drawable/ic_privacy_shield_24dp"
        android:selectable="false"
        settings:searchable="false" />

</PreferenceScreen>
 No newline at end of file
+0 −6
Original line number Diff line number Diff line
@@ -44,13 +44,7 @@ public class AdaptiveSleepSettings extends DashboardFragment {
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        final FooterPreference footerPreference =
                mFooterPreferenceMixin.createFooterPreference();
        mContext = getContext();

        footerPreference.setIcon(R.drawable.ic_privacy_shield_24dp);
        footerPreference.setTitle(R.string.adaptive_sleep_privacy);

        Preference permissionPreference = findPreference(
                AdaptiveSleepPermissionPreferenceController.PREF_NAME);
        if (permissionPreference != null) {