commit | 5537faaf9f40c2d7cdb8ab5947f494ce96c832a3 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Tue May 19 17:35:07 2015 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Tue May 19 17:35:07 2015 -0700 |
tree | 6f38855fc7d4dc2ef98a0bf89795532cd6910ac4 | |
parent | 39b83c62566f6914f9169cd9ee5f1edb44815109 [diff] |
Adding null check to outline generator Change-Id: I8eb8b62a868d80fd0a7c9deec8915828bd8177d0
diff --git a/src/com/android/launcher3/HolographicOutlineHelper.java b/src/com/android/launcher3/HolographicOutlineHelper.java index 4a04d03..5ff85d6 100644 --- a/src/com/android/launcher3/HolographicOutlineHelper.java +++ b/src/com/android/launcher3/HolographicOutlineHelper.java
@@ -157,6 +157,9 @@ Bitmap createMediumDropShadow(BubbleTextView view) { Drawable icon = view.getIcon(); + if (icon == null) { + return null; + } Rect rect = icon.getBounds(); int bitmapWidth = (int) (rect.width() * view.getScaleX());