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

Commit 49596b8d authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

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

am: fcb7982a

Change-Id: Ie54016e55d4170963f6ccf9603d2bfa2ada30a35
parents 2c68abc9 fcb7982a
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -26743,18 +26743,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.