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:
@@ -248,6 +248,7 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
} else if (mTransitioningViews != null) {
|
||||
mTransitioningViews.addAll(mSharedElements);
|
||||
}
|
||||
moveSharedElementsFromOverlay();
|
||||
mSharedElementNames.clear();
|
||||
mSharedElements.clear();
|
||||
mAllSharedElementNames.clear();
|
||||
|
||||
Reference in New Issue
Block a user