Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitDecorManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ public class SplitDecorManager extends WindowlessWindowManager { } /** Inflates split decor surface on the root surface. */ public void inflate(Context context, SurfaceControl rootLeash, Rect rootBounds) { public void inflate(Context context, SurfaceControl rootLeash) { if (mIconLeash != null && mViewHost != null) { return; } Loading @@ -128,8 +128,8 @@ public class SplitDecorManager extends WindowlessWindowManager { final WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 0 /* width */, 0 /* height */, TYPE_APPLICATION_OVERLAY, FLAG_NOT_FOCUSABLE | FLAG_NOT_TOUCHABLE, PixelFormat.TRANSLUCENT); lp.width = rootBounds.width(); lp.height = rootBounds.height(); lp.width = mIconSize; lp.height = mIconSize; lp.token = new Binder(); lp.setTitle(TAG); lp.privateFlags |= PRIVATE_FLAG_NO_MOVE_ANIMATION | PRIVATE_FLAG_TRUSTED_OVERLAY; Loading libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java +2 −4 Original line number Diff line number Diff line Loading @@ -1762,10 +1762,8 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler, void finishEnterSplitScreen(SurfaceControl.Transaction finishT) { ProtoLog.d(WM_SHELL_SPLIT_SCREEN, "finishEnterSplitScreen"); mSplitLayout.update(finishT, true /* resetImePosition */); mMainStage.getSplitDecorManager().inflate(mContext, mMainStage.mRootLeash, getMainStageBounds()); mSideStage.getSplitDecorManager().inflate(mContext, mSideStage.mRootLeash, getSideStageBounds()); mMainStage.getSplitDecorManager().inflate(mContext, mMainStage.mRootLeash); mSideStage.getSplitDecorManager().inflate(mContext, mSideStage.mRootLeash); setDividerVisibility(true, finishT); // Ensure divider surface are re-parented back into the hierarchy at the end of the // transition. See Transition#buildFinishTransaction for more detail. Loading libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageTaskListener.java +1 −2 Original line number Diff line number Diff line Loading @@ -218,8 +218,7 @@ class StageTaskListener implements ShellTaskOrganizer.TaskListener { // Inflates split decor view only when the root task is visible. if (!ENABLE_SHELL_TRANSITIONS && mRootTaskInfo.isVisible != taskInfo.isVisible) { if (taskInfo.isVisible) { mSplitDecorManager.inflate(mContext, mRootLeash, taskInfo.configuration.windowConfiguration.getBounds()); mSplitDecorManager.inflate(mContext, mRootLeash); } else { mSyncQueue.runInSync(t -> mSplitDecorManager.release(t)); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitDecorManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ public class SplitDecorManager extends WindowlessWindowManager { } /** Inflates split decor surface on the root surface. */ public void inflate(Context context, SurfaceControl rootLeash, Rect rootBounds) { public void inflate(Context context, SurfaceControl rootLeash) { if (mIconLeash != null && mViewHost != null) { return; } Loading @@ -128,8 +128,8 @@ public class SplitDecorManager extends WindowlessWindowManager { final WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 0 /* width */, 0 /* height */, TYPE_APPLICATION_OVERLAY, FLAG_NOT_FOCUSABLE | FLAG_NOT_TOUCHABLE, PixelFormat.TRANSLUCENT); lp.width = rootBounds.width(); lp.height = rootBounds.height(); lp.width = mIconSize; lp.height = mIconSize; lp.token = new Binder(); lp.setTitle(TAG); lp.privateFlags |= PRIVATE_FLAG_NO_MOVE_ANIMATION | PRIVATE_FLAG_TRUSTED_OVERLAY; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageCoordinator.java +2 −4 Original line number Diff line number Diff line Loading @@ -1762,10 +1762,8 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler, void finishEnterSplitScreen(SurfaceControl.Transaction finishT) { ProtoLog.d(WM_SHELL_SPLIT_SCREEN, "finishEnterSplitScreen"); mSplitLayout.update(finishT, true /* resetImePosition */); mMainStage.getSplitDecorManager().inflate(mContext, mMainStage.mRootLeash, getMainStageBounds()); mSideStage.getSplitDecorManager().inflate(mContext, mSideStage.mRootLeash, getSideStageBounds()); mMainStage.getSplitDecorManager().inflate(mContext, mMainStage.mRootLeash); mSideStage.getSplitDecorManager().inflate(mContext, mSideStage.mRootLeash); setDividerVisibility(true, finishT); // Ensure divider surface are re-parented back into the hierarchy at the end of the // transition. See Transition#buildFinishTransaction for more detail. Loading
libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/StageTaskListener.java +1 −2 Original line number Diff line number Diff line Loading @@ -218,8 +218,7 @@ class StageTaskListener implements ShellTaskOrganizer.TaskListener { // Inflates split decor view only when the root task is visible. if (!ENABLE_SHELL_TRANSITIONS && mRootTaskInfo.isVisible != taskInfo.isVisible) { if (taskInfo.isVisible) { mSplitDecorManager.inflate(mContext, mRootLeash, taskInfo.configuration.windowConfiguration.getBounds()); mSplitDecorManager.inflate(mContext, mRootLeash); } else { mSyncQueue.runInSync(t -> mSplitDecorManager.release(t)); } Loading