Merge "Adding null check to outline generator" into ub-launcher3-burnaby

This commit is contained in:
Sunny Goyal
2015-05-20 04:15:03 +00:00
committed by Android (Google) Code Review
@@ -157,6 +157,9 @@ public class HolographicOutlineHelper {
Bitmap createMediumDropShadow(BubbleTextView view) {
Drawable icon = view.getIcon();
if (icon == null) {
return null;
}
Rect rect = icon.getBounds();
int bitmapWidth = (int) (rect.width() * view.getScaleX());