Merge "QS: Protect against crash with no icon" into nyc-dev am: 7b945d8d30 am: a58c1a52ac

am: 71a7976e35

* commit '71a7976e35ceec565c62e969ba055772919b32ef':
  QS: Protect against crash with no icon

Change-Id: Ia0d657c1935662f880604be702ce5858522e41b2
This commit is contained in:
Jason Monk
2016-06-01 21:12:33 +00:00
committed by android-build-merger

View File

@@ -80,7 +80,7 @@ public class QSIconView extends ViewGroup {
Drawable d = state.icon != null
? iv.isShown() && mAnimationEnabled ? state.icon.getDrawable(mContext)
: 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) {
d.setAutoMirrored(true);
}