Fix slow exit transition left exited views INVISIBLE.
Bug 33377297 When an exit transition was finished after the onStop was received, the final visibilty ended up being INVISIBLE. To prevent this, when views are being reset to the initial location, the transitions are forced to end prior to changing the final values. Test: I10517bb5f1477824f1e54109e7be766225591d24 Change-Id: I3837927bb41623a3a146fc3a42209c9a81c99a38
This commit is contained in:
@@ -124,13 +124,16 @@ class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
}
|
||||
|
||||
public void resetViews() {
|
||||
ViewGroup decorView = getDecor();
|
||||
if (decorView != null) {
|
||||
TransitionManager.endTransitions(decorView);
|
||||
}
|
||||
if (mTransitioningViews != null) {
|
||||
showViews(mTransitioningViews, true);
|
||||
setTransitioningViewsVisiblity(View.VISIBLE, true);
|
||||
}
|
||||
showViews(mSharedElements, true);
|
||||
mIsHidden = true;
|
||||
ViewGroup decorView = getDecor();
|
||||
if (!mIsReturning && decorView != null) {
|
||||
decorView.suppressLayout(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user