From f1e1ed255adf739a07d8e6b9fc805ff30bbd6d9f Mon Sep 17 00:00:00 2001 From: ZhaoPengyuan Date: Tue, 18 Aug 2020 20:19:42 +0800 Subject: [PATCH] window:discard rect change when window moves out of screen Discard rect change when window moves out of screen, to avoid config change as some app did not handle that --- services/core/java/com/android/server/am/TaskRecord.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/am/TaskRecord.java b/services/core/java/com/android/server/am/TaskRecord.java index b562860d..b030d506 100755 --- a/services/core/java/com/android/server/am/TaskRecord.java +++ b/services/core/java/com/android/server/am/TaskRecord.java @@ -1513,12 +1513,12 @@ final class TaskRecord { boolean overrideWidth, boolean overrideHeight) { mTmpNonDecorBounds.set(bounds); mTmpStableBounds.set(bounds); - subtractNonDecorInsets( + /*subtractNonDecorInsets( mTmpNonDecorBounds, insetBounds != null ? insetBounds : bounds, overrideWidth, overrideHeight); subtractStableInsets( mTmpStableBounds, insetBounds != null ? insetBounds : bounds, - overrideWidth, overrideHeight); + overrideWidth, overrideHeight);*/ // For calculating screenWidthDp, screenWidthDp, we use the stable inset screen area, // i.e. the screen area without the system bars. -- Gitee