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

Commit 8cef293d authored by Louis Chang's avatar Louis Chang
Browse files

Attempt to fix presubmit failure

System crashed while running presubmit. The #getDisplayIdsLocked()
was not guarded by synchronization since commit 05e1c1a9.

Bug: 170451499
Test: presubmit
Change-Id: I4f2dfd2637632f722d6223469d478940db152e45
parent 29f12866
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1768,7 +1768,9 @@ public final class DisplayManagerService extends SystemService {
            final int callingUid = Binder.getCallingUid();
            final long token = Binder.clearCallingIdentity();
            try {
                synchronized (mSyncRoot) {
                    return mLogicalDisplayMapper.getDisplayIdsLocked(callingUid);
                }
            } finally {
                Binder.restoreCallingIdentity(token);
            }