Loading services/core/java/com/android/server/wm/Task.java +4 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,10 @@ class Task implements DimLayer.DimLayerUser { return mStack != null && mStack.mStackId == FREEFORM_WORKSPACE_STACK_ID; } boolean inDockedWorkspace() { return mStack != null && mStack.mStackId == DOCKED_STACK_ID; } WindowState getTopAppMainWindow() { final int tokensCount = mAppTokens.size(); return tokensCount > 0 ? mAppTokens.get(tokensCount - 1).findMainWindow() : null; Loading services/core/java/com/android/server/wm/WindowState.java +4 −0 Original line number Diff line number Diff line Loading @@ -1326,6 +1326,10 @@ final class WindowState implements WindowManagerPolicy.WindowState { } } boolean inDockedWorkspace() { return mAppToken != null && mAppToken.mTask != null && mAppToken.mTask.inDockedWorkspace(); } private class DeathRecipient implements IBinder.DeathRecipient { @Override public void binderDied() { Loading services/core/java/com/android/server/wm/WindowStateAnimator.java +2 −3 Original line number Diff line number Diff line Loading @@ -1401,9 +1401,8 @@ class WindowStateAnimator { clipRect.offset(attrs.surfaceInsets.left, attrs.surfaceInsets.top); // We don't want to clip to stack bounds windows that are currently doing entrance // animation. This is necessary for docking operation, otherwise the window will be // suddenly cut off. if (!mAnimator.mAnimating) { // animation for docked window, otherwise the animating window will be suddenly cut off. if (!(mAnimator.mAnimating && w.inDockedWorkspace())) { adjustCropToStackBounds(w, clipRect); } Loading Loading
services/core/java/com/android/server/wm/Task.java +4 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,10 @@ class Task implements DimLayer.DimLayerUser { return mStack != null && mStack.mStackId == FREEFORM_WORKSPACE_STACK_ID; } boolean inDockedWorkspace() { return mStack != null && mStack.mStackId == DOCKED_STACK_ID; } WindowState getTopAppMainWindow() { final int tokensCount = mAppTokens.size(); return tokensCount > 0 ? mAppTokens.get(tokensCount - 1).findMainWindow() : null; Loading
services/core/java/com/android/server/wm/WindowState.java +4 −0 Original line number Diff line number Diff line Loading @@ -1326,6 +1326,10 @@ final class WindowState implements WindowManagerPolicy.WindowState { } } boolean inDockedWorkspace() { return mAppToken != null && mAppToken.mTask != null && mAppToken.mTask.inDockedWorkspace(); } private class DeathRecipient implements IBinder.DeathRecipient { @Override public void binderDied() { Loading
services/core/java/com/android/server/wm/WindowStateAnimator.java +2 −3 Original line number Diff line number Diff line Loading @@ -1401,9 +1401,8 @@ class WindowStateAnimator { clipRect.offset(attrs.surfaceInsets.left, attrs.surfaceInsets.top); // We don't want to clip to stack bounds windows that are currently doing entrance // animation. This is necessary for docking operation, otherwise the window will be // suddenly cut off. if (!mAnimator.mAnimating) { // animation for docked window, otherwise the animating window will be suddenly cut off. if (!(mAnimator.mAnimating && w.inDockedWorkspace())) { adjustCropToStackBounds(w, clipRect); } Loading