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

Commit bcad3220 authored by wilsonshih's avatar wilsonshih Committed by android-build-merger
Browse files

Merge "Clear the calling identity in isUsableDisplay." into qt-dev am: 6102c2f7

am: 5c27a9c2

Change-Id: Ia5587e10bfcde212ad69fc584083171b344e4615
parents 3dc7b03c 5c27a9c2
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1172,8 +1172,16 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                return false;
            }
            final int displayId = display.getDisplayId();
            return displayId == DEFAULT_DISPLAY
                    || mWindowManagerInternal.shouldShowSystemDecorOnDisplay(displayId);
            if (displayId == DEFAULT_DISPLAY) {
                return true;
            }

            final long ident = Binder.clearCallingIdentity();
            try {
                return mWindowManagerInternal.shouldShowSystemDecorOnDisplay(displayId);
            } finally {
                Binder.restoreCallingIdentity(ident);
            }
        }

        void forEachDisplayConnector(Consumer<DisplayConnector> action) {