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

Commit fd304f2f authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Don't inflate mSplitDecorManager in sync transaction callback" into tm-dev

parents 5843318c 04efcbae
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -224,14 +224,12 @@ class StageTaskListener implements ShellTaskOrganizer.TaskListener {
        if (mRootTaskInfo.taskId == taskInfo.taskId) {
            // Inflates split decor view only when the root task is visible.
            if (mRootTaskInfo.isVisible != taskInfo.isVisible) {
                mSyncQueue.runInSync(t -> {
                if (taskInfo.isVisible) {
                    mSplitDecorManager.inflate(mContext, mRootLeash,
                            taskInfo.configuration.windowConfiguration.getBounds());
                } else {
                        mSplitDecorManager.release(t);
                    mSyncQueue.runInSync(t -> mSplitDecorManager.release(t));
                }
                });
            }
            mRootTaskInfo = taskInfo;
        } else if (taskInfo.parentTaskId == mRootTaskInfo.taskId) {