Merge "Fix IndexOutOfBoundsException while handle app crash" into udc-dev
This commit is contained in:
@@ -378,8 +378,9 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
|||||||
}
|
}
|
||||||
|
|
||||||
void handleAppCrash() {
|
void handleAppCrash() {
|
||||||
for (int i = mActivities.size() - 1; i >= 0; --i) {
|
ArrayList<ActivityRecord> activities = new ArrayList<>(mActivities);
|
||||||
final ActivityRecord r = mActivities.get(i);
|
for (int i = activities.size() - 1; i >= 0; --i) {
|
||||||
|
final ActivityRecord r = activities.get(i);
|
||||||
Slog.w(TAG, " Force finishing activity "
|
Slog.w(TAG, " Force finishing activity "
|
||||||
+ r.mActivityComponent.flattenToShortString());
|
+ r.mActivityComponent.flattenToShortString());
|
||||||
r.detachFromProcess();
|
r.detachFromProcess();
|
||||||
|
|||||||
Reference in New Issue
Block a user