summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2020-03-02 12:30:07 +0800
committer wilsonshih <wilsonshih@google.com> 2020-03-04 14:40:55 +0800
commitcdf51038a6ed7ae061025662ed06eb515ea433ee (patch)
tree5fed694c7502a63a6fc32cd37e25332dea0db694
parentf7ed9bc589774fcc911321bae5c6521397e95aef (diff)
Fix activity does not relaunch after config change.
Fix two minor problems while refactoring. - EnsureVisibleActivitiesConfigHelper doesn't apply to activities. Wrong boundary. - Full screen stack doesn't dump it's bounds to proto, actually we should dump the bounds from FullConfiguration since we should only care the final result. Bug: 80414790 Bug: 149429752 Test: atest SplitScreenTests Change-Id: I466867d1ec9c2e5227575f884cac85907a13faab
-rw-r--r--services/core/java/com/android/server/wm/ActivityStack.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityStack.java b/services/core/java/com/android/server/wm/ActivityStack.java
index 5ddd7311a004..c6f1a00cdb6c 100644
--- a/services/core/java/com/android/server/wm/ActivityStack.java
+++ b/services/core/java/com/android/server/wm/ActivityStack.java
@@ -356,8 +356,7 @@ class ActivityStack extends Task {
final PooledFunction f = PooledLambda.obtainFunction(
EnsureVisibleActivitiesConfigHelper::processActivity, this,
PooledLambda.__(ActivityRecord.class));
- forAllActivities(f, start.getTask(), true /*includeBoundary*/,
- true /*traverseTopToBottom*/);
+ forAllActivities(f, start, true /*includeBoundary*/, true /*traverseTopToBottom*/);
f.recycle();
if (mUpdateConfig) {
@@ -3945,15 +3944,8 @@ class ActivityStack extends Task {
proto.write(MIN_HEIGHT, mMinHeight);
proto.write(FILLS_PARENT, matchParentBounds());
+ getRawBounds().dumpDebug(proto, BOUNDS);
- if (!matchParentBounds()) {
- final Rect bounds = getRequestedOverrideBounds();
- bounds.dumpDebug(proto, BOUNDS);
- } else if (getStack().getTile() != null) {
- // use tile's bounds here for cts.
- final Rect bounds = getStack().getTile().getRequestedOverrideBounds();
- bounds.dumpDebug(proto, BOUNDS);
- }
getOverrideDisplayedBounds().dumpDebug(proto, DISPLAYED_BOUNDS);
if (mLastNonFullscreenBounds != null) {
mLastNonFullscreenBounds.dumpDebug(proto, LAST_NON_FULLSCREEN_BOUNDS);