From 8bc38e307bfb6d16f321aee39d4d1b0cf4a8cc54 Mon Sep 17 00:00:00 2001 From: Rahul Banerjee Date: Mon, 11 Nov 2024 16:08:52 -0800 Subject: Fix "G" logo changing position during device reboot. Bug: 376214650 Flag: EXEMPT Fix typo Test: Manual (before: https://paste.googleplex.com/6201863358906368 after: https://paste.googleplex.com/6215099508588544) Change-Id: Id95f50a5c12c2ed77746c4b363464d79aacb8b6d --- cmds/bootanimation/BootAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/bootanimation/BootAnimation.cpp') diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 14e238768f41..b43905b19239 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -451,7 +451,7 @@ public: auto token = SurfaceComposerClient::getPhysicalDisplayToken( event.header.displayId); - auto firstDisplay = mBootAnimation->mDisplays.front(); + auto& firstDisplay = mBootAnimation->mDisplays.front(); if (token != firstDisplay.displayToken) { // ignore hotplug of a secondary display continue; -- cgit v1.2.3-59-g8ed1b