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

Commit 8cd8cf45 authored by Jiaquan He's avatar Jiaquan He Committed by Android (Google) Code Review
Browse files

Merge "Change some members in QSTileBaseView and QSTileView."

parents 57d4d71f 074ae469
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);