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

Commit 4a15446a authored by Heemin Seog's avatar Heemin Seog Committed by android-build-merger
Browse files

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

am: bb0d5d0c

Change-Id: Ie8cce076813e9eeab1891c3010b90886d8744f43
parents 7a557e31 bb0d5d0c
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