Fix blink of final position in activity transitions.
Bug 33059372 When implementing OneShotPreDrawListener, one of the onPreDraw() calls was supposed to return false. This CL restores that behavior. Test: manual against Play Movies app Change-Id: I416da3bb3e84efb009f0efbacad71d0a2f66fe18
This commit is contained in:
@@ -457,7 +457,7 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
public void onSharedElementsReady() {
|
||||
final View decorView = getDecor();
|
||||
if (decorView != null) {
|
||||
OneShotPreDrawListener.add(decorView, () -> {
|
||||
OneShotPreDrawListener.add(decorView, false, () -> {
|
||||
startTransition(() -> {
|
||||
startSharedElementTransition(sharedElementState);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user