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

Commit e399817f authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Shift Recents task to top when opening Recents."

parents 90a6c03c 798075a5
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,8 @@ import static android.view.WindowManager.TRANSIT_TO_BACK;
import static android.view.WindowManager.TRANSIT_TO_FRONT;
import static android.view.WindowManager.TRANSIT_TO_FRONT;
import static android.window.TransitionFilter.CONTAINER_ORDER_TOP;
import static android.window.TransitionFilter.CONTAINER_ORDER_TOP;


import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.ACTIVITY_TYPE_RECENTS;

import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.SuppressLint;
@@ -145,6 +147,11 @@ public class RemoteTransitionCompat implements Parcelable {
                                && taskInfo.pictureInPictureParams.isAutoEnterEnabled()) {
                                && taskInfo.pictureInPictureParams.isAutoEnterEnabled()) {
                            pipTask = taskInfo.token;
                            pipTask = taskInfo.token;
                        }
                        }
                    } else if (change.getTaskInfo() != null
                            && change.getTaskInfo().topActivityType == ACTIVITY_TYPE_RECENTS) {
                        // This task is for recents, keep it on top.
                        t.setLayer(leashMap.get(change.getLeash()),
                                info.getChanges().size() * 3 - i);
                    }
                    }
                }
                }
                // Also make all the wallpapers opaque since we want the visible from the start
                // Also make all the wallpapers opaque since we want the visible from the start