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

Commit f6c44278 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307 am:...

Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307 am: 2f34b5f9 am: bd94b5d3 am: cdacf0b9

Change-Id: Idd6355d608e03eb8d0326467a1ba8747c4195c4f
parents 862d7876 cdacf0b9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1123,6 +1123,12 @@
      "group": "WM_DEBUG_ORIENTATION",
      "at": "com\/android\/server\/wm\/DisplayRotation.java"
    },
    "210750281": {
      "message": "applyAnimationUnchecked, control: %s, task: %s, transit: %s",
      "level": "DEBUG",
      "group": "WM_DEBUG_RECENTS_ANIMATIONS",
      "at": "com\/android\/server\/wm\/Task.java"
    },
    "221540118": {
      "message": "mUserActivityTimeout set to %d",
      "level": "DEBUG",
@@ -1537,12 +1543,6 @@
      "group": "WM_DEBUG_RECENTS_ANIMATIONS",
      "at": "com\/android\/server\/wm\/RecentsAnimation.java"
    },
    "854237232": {
      "message": "addTaskToRecentsAnimationIfNeeded, control: %s, task: %s, transit: %s",
      "level": "DEBUG",
      "group": "WM_DEBUG_RECENTS_ANIMATIONS",
      "at": "com\/android\/server\/wm\/Task.java"
    },
    "873914452": {
      "message": "goodToGo()",
      "level": "DEBUG",
+0 −8
Original line number Diff line number Diff line
@@ -407,14 +407,6 @@ public class AppTransition implements Dump {
        return mNextAppTransitionType == NEXT_TRANSIT_TYPE_OPEN_CROSS_PROFILE_APPS;
    }

    boolean isNextAppTransitionCustomFromRecents() {
        final RecentTasks recentTasks = mService.mAtmService.getRecentTasks();
        final String recentsPackageName =
                (recentTasks != null) ? recentTasks.getRecentsComponent().getPackageName() : null;
        return mNextAppTransitionType == NEXT_TRANSIT_TYPE_CUSTOM
                && mNextAppTransitionPackage.equals(recentsPackageName);
    }

    /**
     * @return true if and only if we are currently fetching app transition specs from the future
     *         passed into {@link #overridePendingAppTransitionMultiThumbFuture}
+7 −2
Original line number Diff line number Diff line
@@ -515,9 +515,14 @@ public class RecentsAnimationController implements DeathRecipient {

    void addTaskToTargets(Task task, OnAnimationFinishedCallback finishedCallback) {
        if (mRunner != null) {
            // No need to send task appeared when the task target already exists.
            if (isAnimatingTask(task)) {
                return;
            }
            final RemoteAnimationTarget target = createTaskRemoteAnimation(task, finishedCallback);
            if (target == null) return;

            if (target == null) {
                return;
            }
            ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS, "addTaskToTargets, target: %s", target);
            try {
                mRunner.onTaskAppeared(target);
+7 −6
Original line number Diff line number Diff line
@@ -3503,14 +3503,15 @@ class Task extends WindowContainer<WindowContainer> {
            int transit, boolean isVoiceInteraction,
            @Nullable OnAnimationFinishedCallback finishedCallback) {
        final RecentsAnimationController control = mWmService.getRecentsAnimationController();
        if (control != null && enter
                && getDisplayContent().mAppTransition.isNextAppTransitionCustomFromRecents()) {
            ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
                    "addTaskToRecentsAnimationIfNeeded, control: %s, task: %s, transit: %s",
                    control, asTask(), AppTransition.appTransitionToString(transit));
        if (control != null) {
            // We let the transition to be controlled by RecentsAnimation, and callback task's
            // RemoteAnimationTarget for remote runner to animate.
            if (enter) {
                ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
                        "applyAnimationUnchecked, control: %s, task: %s, transit: %s",
                        control, asTask(), AppTransition.appTransitionToString(transit));
                control.addTaskToTargets(getRootTask(), finishedCallback);
            }
        } else {
            super.applyAnimationUnchecked(lp, enter, transit, isVoiceInteraction, finishedCallback);
        }