From 1f68b5e91d65032790de9b327123a5cd2cf9d5cb Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Tue, 9 Oct 2018 12:23:21 +0900 Subject: [PATCH] Update API doc of View.DragShadowBuilder Since Android P, DragShadowBuilder#onProvideShadowMetrics must provides positive values for shadow width/height. Bug: 113779428 Test: None Change-Id: Idd8c24ee5bf2c7023f7c82137399c59a60162a4f --- core/java/android/view/View.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 0e5f25055c7e1..bea519493d6b6 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -24045,7 +24045,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @param outShadowSize A {@link android.graphics.Point} containing the width and height * of the shadow image. Your application must set {@link android.graphics.Point#x} to the * desired width and must set {@link android.graphics.Point#y} to the desired height of the - * image. + * image. Since Android P, the width and height must be positive values. * * @param outShadowTouchPoint A {@link android.graphics.Point} for the position within the * shadow image that should be underneath the touch point during the drag and drop