Merge "Fix off-by-one in am start -R (repeat)" into nyc-mr1-dev

This commit is contained in:
Chong Zhang
2016-06-29 16:48:33 +00:00
committed by Android (Google) Code Review

View File

@@ -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 {