diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-10-10 13:05:45 -0700 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-10-12 18:56:28 -0700 |
commit | ffc11bb712343b634901fe2d0e0022e7e578dd5c (patch) | |
tree | 45abb190daac4af889d97439c152e4756e0dd090 /cmds/am/src | |
parent | 75f1e1182889dabcf5596e7c17df5005edee412c (diff) |
Don't set incorrect stack bounds when rotating screen in docked mode
Both window manager and activity manager could decide what the bounds
of other stacks should be when the docked stack exist which can get
out of sync. Now window manager does the bounds calculation and
activity manager asks window manager what the bounds should be when
it needs to resize the stack.
Bug: 24738105
Change-Id: I97356f008b676d2f58a8b54fdb08735ab51394af
Diffstat (limited to 'cmds/am/src')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 4a13136fa8d9..81da6af20eb2 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -2033,7 +2033,7 @@ public class Am extends BaseCommand { } try { - mAm.resizeStack(stackId, bounds); + mAm.resizeStack(stackId, bounds, false); Thread.sleep(delayMs); } catch (RemoteException e) { showError("Error: resizing stack " + e); @@ -2127,8 +2127,8 @@ public class Am extends BaseCommand { } // Resize stacks - mAm.resizeStack(currentStackInfo.stackId, currentStackBounds); - mAm.resizeStack(newStackInfo.stackId, newStackBounds); + mAm.resizeStack(currentStackInfo.stackId, currentStackBounds, false); + mAm.resizeStack(newStackInfo.stackId, newStackBounds, false); } catch (RemoteException e) { } } |