Loading services/core/java/com/android/server/wm/AppWindowToken.java +13 −1 Original line number Diff line number Diff line Loading @@ -1334,8 +1334,20 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree // for the next re-entry into PiP (assuming the activity is not hidden or destroyed) final TaskStack pinnedStack = mDisplayContent.getPinnedStack(); if (pinnedStack != null) { final Rect stackBounds; if (pinnedStack.lastAnimatingBoundsWasToFullscreen()) { // We are animating the bounds, use the pre-animation bounds to save the snap // fraction stackBounds = pinnedStack.mPreAnimationBounds; } else { // We skip the animation if the fullscreen configuration is not compatible, so // use the current bounds to calculate the saved snap fraction instead // (see PinnedActivityStack.skipResizeAnimation()) stackBounds = mTmpRect; pinnedStack.getBounds(stackBounds); } mDisplayContent.mPinnedStackControllerLocked.saveReentrySnapFraction(this, pinnedStack.mPreAnimationBounds); stackBounds); } } } Loading services/core/java/com/android/server/wm/PinnedStackController.java +2 −0 Original line number Diff line number Diff line Loading @@ -589,6 +589,7 @@ class PinnedStackController { pw.println(prefix + " mImeHeight=" + mImeHeight); pw.println(prefix + " mIsShelfShowing=" + mIsShelfShowing); pw.println(prefix + " mShelfHeight=" + mShelfHeight); pw.println(prefix + " mReentrySnapFraction=" + mReentrySnapFraction); pw.println(prefix + " mIsMinimized=" + mIsMinimized); if (mActions.isEmpty()) { pw.println(prefix + " mActions=[]"); Loading @@ -601,6 +602,7 @@ class PinnedStackController { } pw.println(prefix + " ]"); } pw.println(prefix + " mDisplayInfo=" + mDisplayInfo); } void writeToProto(ProtoOutputStream proto, long fieldId) { Loading Loading
services/core/java/com/android/server/wm/AppWindowToken.java +13 −1 Original line number Diff line number Diff line Loading @@ -1334,8 +1334,20 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree // for the next re-entry into PiP (assuming the activity is not hidden or destroyed) final TaskStack pinnedStack = mDisplayContent.getPinnedStack(); if (pinnedStack != null) { final Rect stackBounds; if (pinnedStack.lastAnimatingBoundsWasToFullscreen()) { // We are animating the bounds, use the pre-animation bounds to save the snap // fraction stackBounds = pinnedStack.mPreAnimationBounds; } else { // We skip the animation if the fullscreen configuration is not compatible, so // use the current bounds to calculate the saved snap fraction instead // (see PinnedActivityStack.skipResizeAnimation()) stackBounds = mTmpRect; pinnedStack.getBounds(stackBounds); } mDisplayContent.mPinnedStackControllerLocked.saveReentrySnapFraction(this, pinnedStack.mPreAnimationBounds); stackBounds); } } } Loading
services/core/java/com/android/server/wm/PinnedStackController.java +2 −0 Original line number Diff line number Diff line Loading @@ -589,6 +589,7 @@ class PinnedStackController { pw.println(prefix + " mImeHeight=" + mImeHeight); pw.println(prefix + " mIsShelfShowing=" + mIsShelfShowing); pw.println(prefix + " mShelfHeight=" + mShelfHeight); pw.println(prefix + " mReentrySnapFraction=" + mReentrySnapFraction); pw.println(prefix + " mIsMinimized=" + mIsMinimized); if (mActions.isEmpty()) { pw.println(prefix + " mActions=[]"); Loading @@ -601,6 +602,7 @@ class PinnedStackController { } pw.println(prefix + " ]"); } pw.println(prefix + " mDisplayInfo=" + mDisplayInfo); } void writeToProto(ProtoOutputStream proto, long fieldId) { Loading