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

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

Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the AutoBrightness page.

Fixes: 138916403
Test: manual test

Change-Id: I131d5cede156e2dae890342d5b456f347b025e27
parent 87ecb5de
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -39,4 +39,10 @@
        settings:userRestriction="no_config_brightness"
        settings:userRestriction="no_config_brightness"
        settings:allowDividerAbove="true" />
        settings:allowDividerAbove="true" />


    <com.android.settingslib.widget.FooterPreference
        android:key="auto_brightness_footer"
        android:title="@string/auto_brightness_description"
        android:selectable="false"
        settings:searchable="false" />

</PreferenceScreen>
</PreferenceScreen>
 No newline at end of file
+0 −2
Original line number Original line Diff line number Diff line
@@ -37,8 +37,6 @@ public class AutoBrightnessSettings extends DashboardFragment {
    @Override
    @Override
    public void onCreate(Bundle icicle) {
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        super.onCreate(icicle);
        mFooterPreferenceMixin.createFooterPreference()
                .setTitle(R.string.auto_brightness_description);
    }
    }


    @Override
    @Override