From 074ae4696061f7e981160c4bcc94377b53a58203 Mon Sep 17 00:00:00 2001 From: Jiaquan He Date: Fri, 13 May 2016 08:56:19 -0700 Subject: [PATCH] Change some members in QSTileBaseView and QSTileView. Bug: 28531806 Change-Id: I06ff3189f413ce7877d66e4f583cae05869e1ae5 --- .../src/com/android/systemui/qs/QSTileBaseView.java | 6 +++--- .../SystemUI/src/com/android/systemui/qs/QSTileView.java | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java b/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java index f05aa3cdd89c0..3556cd8caebe2 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java @@ -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); diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java b/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java index 24c7b29b26c05..e59873a5ef06b 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTileView.java @@ -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);