OSDN Git Service

Only buildLayer() on attached views
authorChet Haase <chet@google.com>
Sat, 14 Sep 2013 02:01:52 +0000 (19:01 -0700)
committerChet Haase <chet@google.com>
Sat, 14 Sep 2013 02:01:52 +0000 (19:01 -0700)
commit5fd37236dff9ab4d605ddac873d6a353f74838b5
tree2b143ffe20820b14e7e4b494ccf675c0d11b5a19
parent50e5814c337f67c74d9e249cf6f67ac86dfc832d
Only buildLayer() on attached views

A recent change to ViewPropertyAnimator.withLayer() builds the layer
immediately after creating it. This works in general, but if the view
is not attached, buildLayer() throws an exception.

The fix is to ensure that the view is attached before calling buildLayer().

Issue #10750925 Dialer crashed and phone dropped while on call

Change-Id: I801c835a0f5cb81e159fe90c157c122cf2d0da01
core/java/android/view/ViewPropertyAnimator.java