Merge "DO NOT MERGE Do not kill processes when screen size changes" into pi-dev

This commit is contained in:
Jorim Jaggi
2018-08-22 23:26:00 +00:00
committed by Android (Google) Code Review

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");
}
}
}