Merge "More fixes towards the race conditions in AMS" into qt-qpr1-dev

This commit is contained in:
Chris Tate
2020-06-03 22:08:37 +00:00
committed by Android (Google) Code Review

View File

@@ -383,7 +383,11 @@ class AppErrors {
// and then the delayed summary kill will be a no-op. // and then the delayed summary kill will be a no-op.
final ProcessRecord p = proc; final ProcessRecord p = proc;
mService.mHandler.postDelayed( mService.mHandler.postDelayed(
() -> killAppImmediateLocked(p, "forced", "killed for invalid state"), () -> {
synchronized (mService) {
killAppImmediateLocked(p, "forced", "killed for invalid state");
}
},
5000L); 5000L);
} }
} }