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

Commit 5502fb1e authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Fix trace counter for display refresh rate

Fix display_set_preferred_refresh_rate trace counter. Previously, the
trace counter did not always reflect the actual value it was set to.

Test: perfetto trace, transition to aod, look for display trace counter
Bug: 280460655
Change-Id: Iff055ff73ebc28cc980d1dbb51b8c1d266a48cba
parent f3192865
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
                mLpChanged.preferredMinDisplayRefreshRate = 0;
            }
            Trace.setCounter("display_set_preferred_refresh_rate",
                    (long) mKeyguardPreferredRefreshRate);
                    (long) mLpChanged.preferredMaxDisplayRefreshRate);
        } else if (mKeyguardMaxRefreshRate > 0) {
            boolean bypassOnKeyguard = mKeyguardBypassController.getBypassEnabled()
                    && state.statusBarState == StatusBarState.KEYGUARD