Loading core/java/android/transition/TransitionUtils.java +4 −1 Original line number Diff line number Diff line Loading @@ -159,6 +159,9 @@ public class TransitionUtils { * @return A bitmap of the given view or null if bounds has no width or height. */ public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) { if (!view.isAttachedToWindow()) { return null; } Bitmap bitmap = null; int bitmapWidth = Math.round(bounds.width()); int bitmapHeight = Math.round(bounds.height()); Loading Loading
core/java/android/transition/TransitionUtils.java +4 −1 Original line number Diff line number Diff line Loading @@ -159,6 +159,9 @@ public class TransitionUtils { * @return A bitmap of the given view or null if bounds has no width or height. */ public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) { if (!view.isAttachedToWindow()) { return null; } Bitmap bitmap = null; int bitmapWidth = Math.round(bounds.width()); int bitmapHeight = Math.round(bounds.height()); Loading