Properly remove GhostViews when Activity Transition canceled.

Bug 25744941

When the returning Activity finished without transferring the
shared element, the shared elements in the underlying Activity
were left as GhostViews. This CL transfers the shared elements
back when the shared element transition is canceled.

Change-Id: I9062f1d439bb5364ac939788c67b20a739c0627b
This commit is contained in:
George Mount
2015-11-17 12:49:22 -08:00
parent 734d399382
commit a228d7e1b1

View File

@@ -248,6 +248,7 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
} else if (mTransitioningViews != null) {
mTransitioningViews.addAll(mSharedElements);
}
moveSharedElementsFromOverlay();
mSharedElementNames.clear();
mSharedElements.clear();
mAllSharedElementNames.clear();