Merge "Finish crashed activities immediately" into klp-modular-dev

This commit is contained in:
Craig Mautner
2014-07-25 01:30:51 +00:00
committed by Android (Google) Code Review

View File

@ -3579,7 +3579,9 @@ final class ActivityStack {
if (r.app == app) { if (r.app == app) {
Slog.w(TAG, " Force finishing activity " Slog.w(TAG, " Force finishing activity "
+ r.intent.getComponent().flattenToShortString()); + r.intent.getComponent().flattenToShortString());
finishActivityLocked(r, Activity.RESULT_CANCELED, null, "crashed", false); // Force the destroy to skip right to removal.
r.app = null;
finishCurrentActivityLocked(r, FINISH_IMMEDIATELY, false);
} }
} }
} }