am 71431bb5: am 79b66725: am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."
* commit '71431bb5ca0d8d566d4ebd9d0bc7eb20950290dc': Fix of tearDown() in SingleLaunchActivityTestCase.
This commit is contained in:
committed by
Android Git Automerger
commit
fbaa6741b6
@@ -75,7 +75,7 @@ public abstract class SingleLaunchActivityTestCase<T extends Activity>
|
||||
protected void tearDown() throws Exception {
|
||||
// If it is the last test case, call finish on the activity.
|
||||
sTestCaseCounter --;
|
||||
if (sTestCaseCounter == 1) {
|
||||
if (sTestCaseCounter == 0) {
|
||||
sActivity.finish();
|
||||
}
|
||||
super.tearDown();
|
||||
|
||||
Reference in New Issue
Block a user