Merge "Change some members in QSTileBaseView and QSTileView."
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user