diff options
| author | 2016-06-29 16:48:33 +0000 | |
|---|---|---|
| committer | 2016-06-29 16:48:35 +0000 | |
| commit | a3fc533d77bb8c12913953bb78849c548a437a3c (patch) | |
| tree | 7933b83f046ac56b27ec3bbab9530e0dc4b01229 | |
| parent | d2e8ae4a907a9c8cbb49432f329a2b69fd941495 (diff) | |
| parent | 2fde939272dbb99cb3a3e4fcaaa73658b42c3963 (diff) | |
Merge "Fix off-by-one in am start -R (repeat)" into nyc-mr1-dev
| -rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 8ccd5d2ebcba..d6c00589e7c2 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -723,10 +723,10 @@ public class Am extends BaseCommand { System.out.println("Complete"); } mRepeat--; - if (mRepeat > 1) { + if (mRepeat > 0) { mAm.unhandledBack(); } - } while (mRepeat > 1); + } while (mRepeat > 0); } private void runForceStop() throws Exception { |