Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a04d242 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

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
parent ab39f605
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -26874,18 +26874,15 @@ 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) {
                    Slog.i(TAG, "Killing home process because of display size change");
                    removeProcessLocked(mHomeProcess, false, true, "kill home screen size");
                }
            }
        }
    }
    }
    /**
     * Called by app main thread to wait for the network policy rules to get updated.