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

Commit 8b4ec8e7 authored by lijilou's avatar lijilou Committed by Cherrypicker Worker
Browse files

Remove unnecessary global lock and make package private for removeObsoleteTaskFiles method.

The removeObsoleteTaskFiles method of WMS is only called in onPreProcessItem method of TaskPersister file and have added global lock,so we can remove the global lock and make this method package private.

Bug: none
Flag: EXEMPT minor optimization
(cherry picked from https://android-review.googlesource.com/q/commit:e9c0ad189f8615939d06325f681b3b63870eb4a0)
Merged-In: Ie73698004f79104cd012aae5cb61e46926717cdf
Change-Id: Ie73698004f79104cd012aae5cb61e46926717cdf
parent 45dd9f93
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4447,11 +4447,9 @@ public class WindowManagerService extends IWindowManager.Stub
     * @param runningUserIds The ids of the list of users that have tasks loaded in our in-memory
     *                       model.
     */
    public void removeObsoleteTaskFiles(ArraySet<Integer> persistentTaskIds, int[] runningUserIds) {
        synchronized (mGlobalLock) {
    void removeObsoleteTaskFiles(ArraySet<Integer> persistentTaskIds, int[] runningUserIds) {
        mTaskSnapshotController.removeObsoleteTaskFiles(persistentTaskIds, runningUserIds);
    }
    }

    @Override
    public void setFixedToUserRotation(int displayId, int fixedToUserRotation) {