Loading services/core/java/com/android/server/wm/DockedStackDividerController.java +4 −1 Original line number Diff line number Diff line Loading @@ -454,8 +454,11 @@ public class DockedStackDividerController { inputMethodManagerInternal.hideCurrentInputMethod(); mImeHideRequested = true; } // If a primary stack was just created, it will not have access to display content at // this point so pass it from here to get a valid dock side. final TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); mOriginalDockedSide = stack.getDockSide(); mOriginalDockedSide = stack.getDockSideForDisplay(mDisplayContent); return; } mOriginalDockedSide = DOCKED_INVALID; Loading services/core/java/com/android/server/wm/TaskStack.java +12 −4 Original line number Diff line number Diff line Loading @@ -1397,15 +1397,23 @@ public class TaskStack extends WindowContainer<Task> implements return getDockSide(getRawBounds()); } int getDockSideForDisplay(DisplayContent dc) { return getDockSide(dc, getRawBounds()); } private int getDockSide(Rect bounds) { if (!inSplitScreenWindowingMode()) { if (mDisplayContent == null) { return DOCKED_INVALID; } if (mDisplayContent == null) { return getDockSide(mDisplayContent, bounds); } private int getDockSide(DisplayContent dc, Rect bounds) { if (!inSplitScreenWindowingMode()) { return DOCKED_INVALID; } mDisplayContent.getBounds(mTmpRect); final int orientation = mDisplayContent.getConfiguration().orientation; dc.getBounds(mTmpRect); final int orientation = dc.getConfiguration().orientation; return getDockSideUnchecked(bounds, mTmpRect, orientation); } Loading Loading
services/core/java/com/android/server/wm/DockedStackDividerController.java +4 −1 Original line number Diff line number Diff line Loading @@ -454,8 +454,11 @@ public class DockedStackDividerController { inputMethodManagerInternal.hideCurrentInputMethod(); mImeHideRequested = true; } // If a primary stack was just created, it will not have access to display content at // this point so pass it from here to get a valid dock side. final TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); mOriginalDockedSide = stack.getDockSide(); mOriginalDockedSide = stack.getDockSideForDisplay(mDisplayContent); return; } mOriginalDockedSide = DOCKED_INVALID; Loading
services/core/java/com/android/server/wm/TaskStack.java +12 −4 Original line number Diff line number Diff line Loading @@ -1397,15 +1397,23 @@ public class TaskStack extends WindowContainer<Task> implements return getDockSide(getRawBounds()); } int getDockSideForDisplay(DisplayContent dc) { return getDockSide(dc, getRawBounds()); } private int getDockSide(Rect bounds) { if (!inSplitScreenWindowingMode()) { if (mDisplayContent == null) { return DOCKED_INVALID; } if (mDisplayContent == null) { return getDockSide(mDisplayContent, bounds); } private int getDockSide(DisplayContent dc, Rect bounds) { if (!inSplitScreenWindowingMode()) { return DOCKED_INVALID; } mDisplayContent.getBounds(mTmpRect); final int orientation = mDisplayContent.getConfiguration().orientation; dc.getBounds(mTmpRect); final int orientation = dc.getConfiguration().orientation; return getDockSideUnchecked(bounds, mTmpRect, orientation); } Loading