OSDN Git Service

Fix Transition test failure.
authorGeorge Mount <mount@google.com>
Fri, 29 Sep 2017 22:03:47 +0000 (15:03 -0700)
committerGeorge Mount <mount@google.com>
Fri, 29 Sep 2017 22:03:47 +0000 (15:03 -0700)
commit3884b03b9829b3f609fa48ba7299b06407621e28
treed4b606f6bce75dfb10409058b4537d8b948ac020
parentbbdc422bb1358f039207f5a6c322fb1327e3bee8
Fix Transition test failure.

Bug: 67049319

TransitionUtils was returning null when the View wasn't attached,
but Visibility transitions can do that intentionally. This CL
temporarily adds detached views to the view hierarchy as part of
an overlay while creating the hardware bitmap representation.

Test: ran transition CTS tests
Change-Id: Ie335619953653dce0224514f0d5c9c8eb00ee1a9
core/java/android/app/SharedElementCallback.java
core/java/android/transition/TransitionUtils.java