Merge "Skip default animation of embedded activity for scene transition" into udc-dev am: 39169f8115 am: 529b9e6cca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23349916 Change-Id: Ibd2644f079731c5fdbd114b9dd1784d9051dfb00 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.android.wm.shell.activityembedding;
|
package com.android.wm.shell.activityembedding;
|
||||||
|
|
||||||
|
import static android.app.ActivityOptions.ANIM_SCENE_TRANSITION;
|
||||||
import static android.window.TransitionInfo.FLAG_FILLS_TASK;
|
import static android.window.TransitionInfo.FLAG_FILLS_TASK;
|
||||||
import static android.window.TransitionInfo.FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY;
|
import static android.window.TransitionInfo.FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY;
|
||||||
|
|
||||||
@@ -111,6 +112,11 @@ public class ActivityEmbeddingController implements Transitions.TransitionHandle
|
|||||||
if (containsNonEmbeddedChange && !handleNonEmbeddedChanges(changes)) {
|
if (containsNonEmbeddedChange && !handleNonEmbeddedChanges(changes)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
final TransitionInfo.AnimationOptions options = info.getAnimationOptions();
|
||||||
|
if (options != null && options.getType() == ANIM_SCENE_TRANSITION) {
|
||||||
|
// Scene-transition will be handled by app side.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Start ActivityEmbedding animation.
|
// Start ActivityEmbedding animation.
|
||||||
mTransitionCallbacks.put(transition, finishCallback);
|
mTransitionCallbacks.put(transition, finishCallback);
|
||||||
|
|||||||
Reference in New Issue
Block a user