Merge "QS: Protect against crash with no icon" into nyc-dev am: 7b945d8d30
am: a58c1a52ac
* commit 'a58c1a52ac44a53175475f78cea074583ed5e177':
QS: Protect against crash with no icon
Change-Id: I20c0c15d3e7358f056198280d8d9c2b0d9ca4115
This commit is contained in:
@@ -80,7 +80,7 @@ public class QSIconView extends ViewGroup {
|
|||||||
Drawable d = state.icon != null
|
Drawable d = state.icon != null
|
||||||
? iv.isShown() && mAnimationEnabled ? state.icon.getDrawable(mContext)
|
? iv.isShown() && mAnimationEnabled ? state.icon.getDrawable(mContext)
|
||||||
: state.icon.getInvisibleDrawable(mContext) : null;
|
: state.icon.getInvisibleDrawable(mContext) : null;
|
||||||
int padding = state.icon != null ? state.icon.getPadding() : null;
|
int padding = state.icon != null ? state.icon.getPadding() : 0;
|
||||||
if (d != null && state.autoMirrorDrawable) {
|
if (d != null && state.autoMirrorDrawable) {
|
||||||
d.setAutoMirrored(true);
|
d.setAutoMirrored(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user