Merge "Always show CHANGE containers in transition setup" into udc-dev am: 3376f68636 am: 664195f960

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23337940

Change-Id: I500608b46f474ed0ad0f5a6669beb83888497811
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2023-05-19 21:15:33 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 0 deletions

View File

@@ -493,6 +493,9 @@ public final class TransitionInfo implements Parcelable {
if ((flags & FLAG_FIRST_CUSTOM) != 0) {
sb.append(sb.length() == 0 ? "" : "|").append("FIRST_CUSTOM");
}
if ((flags & FLAG_MOVED_TO_TOP) != 0) {
sb.append(sb.length() == 0 ? "" : "|").append("MOVE_TO_TOP");
}
return sb.toString();
}

View File

@@ -492,6 +492,10 @@ public class Transitions implements RemoteCallable<Transitions>,
finishT.show(leash);
} else if (mode == TRANSIT_CLOSE || mode == TRANSIT_TO_BACK) {
finishT.hide(leash);
} else if (isOpening && mode == TRANSIT_CHANGE) {
// Just in case there is a race with another animation (eg. recents finish()).
// Changes are visible->visible so it's a problem if it isn't visible.
t.show(leash);
}
}
}