Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e74a5904 authored by Tony Huang's avatar Tony Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix toucn unresponsive after half fold in split" into sc-v2-dev am: 07a5dd0c

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

Change-Id: I86e695dfb3d4c6d8cb3dee9770f7730cfe690e3d
parents 590d4a4e 07a5dd0c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -100,6 +100,9 @@ public class StageTaskUnfoldController implements UnfoldListener, OnInsetsChange
     * @param leash surface leash for the appeared task
     * @param leash surface leash for the appeared task
     */
     */
    public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) {
    public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) {
        // Only handle child task surface here.
        if (!taskInfo.hasParentTask()) return;

        AnimationContext context = new AnimationContext(leash);
        AnimationContext context = new AnimationContext(leash);
        mAnimationContextByTaskId.put(taskInfo.taskId, context);
        mAnimationContextByTaskId.put(taskInfo.taskId, context);
    }
    }
@@ -109,6 +112,8 @@ public class StageTaskUnfoldController implements UnfoldListener, OnInsetsChange
     * @param taskInfo info for the vanished task
     * @param taskInfo info for the vanished task
     */
     */
    public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) {
    public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) {
        if (!taskInfo.hasParentTask()) return;

        AnimationContext context = mAnimationContextByTaskId.get(taskInfo.taskId);
        AnimationContext context = mAnimationContextByTaskId.get(taskInfo.taskId);
        if (context != null) {
        if (context != null) {
            final SurfaceControl.Transaction transaction = mTransactionPool.acquire();
            final SurfaceControl.Transaction transaction = mTransactionPool.acquire();