DO NOT MERGE Do not kill processes when screen size changes

Causes too much of a process restart storm.

Test: Switch cutout option
Bug: 112876936
Change-Id: I76909bd292c7d6b28c673f068c408885da0d92c1
This commit is contained in:
Jorim Jaggi
2018-08-22 23:09:27 +02:00
parent ab39f605b1
commit 3a04d24268

View File

@@ -26874,14 +26874,11 @@ public class ActivityManagerService extends IActivityManager.Stub
@Override
public void notifyDefaultDisplaySizeChanged() {
synchronized (this) {
if (mSystemServiceManager.isBootCompleted()) {
Slog.i(TAG, "Killing processes because of display size change");
killAllBackgroundProcessesExcept(-1, ActivityManager.PROCESS_STATE_SERVICE);
if (mSystemServiceManager.isBootCompleted() && mHomeProcess != null) {
// TODO: Ugly hack to unblock the release
if (mHomeProcess != null) {
removeProcessLocked(mHomeProcess, false, true, "kill home screen size");
}
Slog.i(TAG, "Killing home process because of display size change");
removeProcessLocked(mHomeProcess, false, true, "kill home screen size");
}
}
}