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

Commit f5048752 authored by Dominik Laskowski's avatar Dominik Laskowski
Browse files

SF: Reset the active display on hotplug reconnect

Reconnecting the active display only called resetPhaseConfiguration, but
actually involves an active display change.

Bug: 255635821
Flag: EXEMPT bugfix
Test: Hotplug reconnect on ATV
Change-Id: I580d330196133a72ef6c833d93375b2d3f3ee78b
parent 43839679
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3838,11 +3838,8 @@ void SurfaceFlinger::processDisplayChanged(const wp<IBinder>& displayToken,
                setPowerModeInternal(display, hal::PowerMode::ON);
            }

            // TODO(b/175678251) Call a listener instead.
            if (currentState.physical->hwcDisplayId == getHwComposer().getPrimaryHwcDisplayId()) {
                const Fps refreshRate =
                        mDisplayModeController.getActiveMode(display->getPhysicalId()).fps;
                mScheduler->resetPhaseConfiguration(refreshRate);
            if (display->getPhysicalId() == mActiveDisplayId) {
                onActiveDisplayChangedLocked(nullptr, *display);
            }
        }
        return;