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

Commit 656c300e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add title support for SlicePreference"

parents 1b1c2c22 dc337474
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -33,12 +33,17 @@ public class SlicePreference extends LayoutPreference {

    public SlicePreference(Context context, AttributeSet attrs) {
        super(context, attrs, R.attr.slicePreferenceStyle);
        mSliceView = findViewById(R.id.slice_view);
        init();
    }

    public SlicePreference(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, R.attr.slicePreferenceStyle);
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        mSliceView = findViewById(R.id.slice_view);
        mSliceView.showTitleItems(true);
    }

    public void onSliceUpdated(Slice slice) {