summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2015-01-30 09:39:53 -0800
committerTodd Kennedy <toddke@google.com>2015-01-30 09:39:53 -0800
commitaab56dbc1ef5c91afad1e61d633305bb3aa3cb1b (patch)
tree53692389a4e012a10626024c8806535339de9425 /cmds
parent728dace14d83e87e777ceaaf3dfd031cf3502f80 (diff)
downloadframeworks_base-aab56dbc1ef5c91afad1e61d633305bb3aa3cb1b.zip
frameworks_base-aab56dbc1ef5c91afad1e61d633305bb3aa3cb1b.tar.gz
frameworks_base-aab56dbc1ef5c91afad1e61d633305bb3aa3cb1b.tar.bz2
Show stacks underneath a resized stack
When a stack is resized, make sure any non-fullscreen stack beneath it becomes visible. This may mean additional activities are resumed in the process. Bug: 19083171 Change-Id: I5e7a3f82d76932ea2b9dbf0324ea183c42ee5496
Diffstat (limited to 'cmds')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index 2a0ed90..fb3d423 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -1735,6 +1735,22 @@ public class Am extends BaseCommand {
int right = Integer.valueOf(rightStr);
String bottomStr = nextArgRequired();
int bottom = Integer.valueOf(bottomStr);
+ if (left < 0) {
+ System.err.println("Error: bad left arg: " + leftStr);
+ return;
+ }
+ if (top < 0) {
+ System.err.println("Error: bad top arg: " + topStr);
+ return;
+ }
+ if (right <= 0) {
+ System.err.println("Error: bad right arg: " + rightStr);
+ return;
+ }
+ if (bottom <= 0) {
+ System.err.println("Error: bad bottom arg: " + bottomStr);
+ return;
+ }
try {
mAm.resizeStack(stackId, new Rect(left, top, right, bottom));