Merge "Don't inflate mSplitDecorManager in sync transaction callback" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd304f2fbb
@@ -224,14 +224,12 @@ class StageTaskListener implements ShellTaskOrganizer.TaskListener {
|
|||||||
if (mRootTaskInfo.taskId == taskInfo.taskId) {
|
if (mRootTaskInfo.taskId == taskInfo.taskId) {
|
||||||
// Inflates split decor view only when the root task is visible.
|
// Inflates split decor view only when the root task is visible.
|
||||||
if (mRootTaskInfo.isVisible != taskInfo.isVisible) {
|
if (mRootTaskInfo.isVisible != taskInfo.isVisible) {
|
||||||
mSyncQueue.runInSync(t -> {
|
|
||||||
if (taskInfo.isVisible) {
|
if (taskInfo.isVisible) {
|
||||||
mSplitDecorManager.inflate(mContext, mRootLeash,
|
mSplitDecorManager.inflate(mContext, mRootLeash,
|
||||||
taskInfo.configuration.windowConfiguration.getBounds());
|
taskInfo.configuration.windowConfiguration.getBounds());
|
||||||
} else {
|
} else {
|
||||||
mSplitDecorManager.release(t);
|
mSyncQueue.runInSync(t -> mSplitDecorManager.release(t));
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
mRootTaskInfo = taskInfo;
|
mRootTaskInfo = taskInfo;
|
||||||
} else if (taskInfo.parentTaskId == mRootTaskInfo.taskId) {
|
} else if (taskInfo.parentTaskId == mRootTaskInfo.taskId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user