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

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

Merge "Use the default preference style for our two state preference" into qt-dev

parents 7a557e31 6bb4a878
Loading
Loading
Loading
Loading
+3 −15
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@ package com.android.packageinstaller.role.ui.auto;

import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import androidx.core.content.res.TypedArrayUtils;
import androidx.preference.PreferenceViewHolder;
import androidx.preference.TwoStatePreference;

@@ -30,21 +30,9 @@ import com.android.permissioncontroller.R;
/** Preference used to represent apps that can be picked as a default app. */
public class AutoDefaultAppPreference extends TwoStatePreference {

    public AutoDefaultAppPreference(Context context, AttributeSet attrs,
            int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    public AutoDefaultAppPreference(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public AutoDefaultAppPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public AutoDefaultAppPreference(Context context) {
        super(context);
        super(context, null, TypedArrayUtils.getAttr(context, R.attr.preferenceStyle,
                android.R.attr.preferenceStyle));
    }

    @Override