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

Commit 4fe4a5ef authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Count TaskView PendingIntent as activity launch" into main

parents a4ff98b3 c00afc36
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -390,7 +390,10 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub

    private static boolean hasActivityLaunch(@NonNull WindowContainerTransaction wct) {
        for (int i = 0; i < wct.getHierarchyOps().size(); ++i) {
            if (wct.getHierarchyOps().get(i).getType() == HIERARCHY_OP_TYPE_LAUNCH_TASK) {
            final WindowContainerTransaction.HierarchyOp op = wct.getHierarchyOps().get(i);
            if (op.getType() == HIERARCHY_OP_TYPE_LAUNCH_TASK
                    || (op.getType() == HIERARCHY_OP_TYPE_PENDING_INTENT
                            && op.getPendingIntent().isActivity())) {
                return true;
            }
        }