Track activity launch failure.

If activity launch is failed twice, we give up and finish the activity
but currently we are not tracking the failures. This change fixes that.

Bug: 37172206
Test: manual
Change-Id: Idc67a5e44cbef97985494f42211d24a3697f607b
This commit is contained in:
Sudheer Shanka
2017-05-05 16:39:32 -07:00
parent 074a67c116
commit e49e7b8bd1

View File

@@ -1491,6 +1491,7 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
// This is the first time we failed -- restart process and
// retry.
r.launchFailed = true;
app.activities.remove(r);
throw e;
}