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

Commit fcb7982a authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

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

parents e387ce18 3a04d242
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.