OSDN Git Service

Fixed a bug where the outline was not correctly updated
authorSelim Cinek <cinek@google.com>
Tue, 29 Apr 2014 12:41:36 +0000 (14:41 +0200)
committerSelim Cinek <cinek@google.com>
Tue, 29 Apr 2014 12:41:36 +0000 (14:41 +0200)
The outline was not correctly copied to the field when it already
existed.

Change-Id: I02a7006f7ceff9241b1c52c73ea159c59aa7464e

core/java/android/view/View.java

index fdf31fa..743ab77 100644 (file)
@@ -10585,8 +10585,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
         } else {
             // always copy the path since caller may reuse
             if (mOutline == null) {
-                mOutline = new Outline(outline);
+                mOutline = new Outline();
             }
+            mOutline.set(outline);
         }
         mRenderNode.setOutline(mOutline);
     }