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

Commit 074ae469 authored by Jiaquan He's avatar Jiaquan He
Browse files

Change some members in QSTileBaseView and QSTileView.

Bug: 28531806

Change-Id: I06ff3189f413ce7877d66e4f583cae05869e1ae5
parent 0353c378
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@ import com.android.systemui.R;
public class QSTileBaseView extends LinearLayout {

    private final H mHandler = new H();
    private QSIconView mIcon;
    private RippleDrawable mRipple;
    protected QSIconView mIcon;
    protected RippleDrawable mRipple;
    private Drawable mTileBackground;
    private String mAccessibilityClass;
    private boolean mTileState;
@@ -65,7 +65,7 @@ public class QSTileBaseView extends LinearLayout {
        mCollapsedView = collapsedView;
    }

    private Drawable newTileBackground() {
    protected Drawable newTileBackground() {
        final int[] attrs = new int[] { android.R.attr.selectableItemBackgroundBorderless };
        final TypedArray ta = mContext.obtainStyledAttributes(attrs);
        final Drawable d = ta.getDrawable(0);
+0 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import libcore.util.Objects;

/** View that represents a standard quick settings tile. **/
public class QSTileView extends QSTileBaseView {
    protected final Context mContext;
    private final int mTileSpacingPx;
    private int mTilePaddingTopPx;

@@ -46,7 +45,6 @@ public class QSTileView extends QSTileBaseView {
    public QSTileView(Context context, QSIconView icon, boolean collapsedView) {
        super(context, icon, collapsedView);

        mContext = context;
        final Resources res = context.getResources();
        mTileSpacingPx = res.getDimensionPixelSize(R.dimen.qs_tile_spacing);