packages/SystemUI/src/com/android/systemui/display/data/repository/DisplayMetricsRepository.kt
0 → 100644
+74
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
CentralSurfacesImpl updated the display metrics on configuration change (see #updateDisplaySize), so the new repo does the same. Removing QsFrameTranslateImpl's usage of CentralSurfaces is necessary to make NotificationPanelViewController a singleton. Bug: 277762009 Bug: 277764509 Test: atest DisplayMetricsRepositoryTest Test: `adb shell dumpsys activity service com.android.systemui/.SystemUIService DisplayMetricsRepo` -> dumps the display metric changes. Notably, the widthPixels and heightPixels change when the device is rotated. Change-Id: Ibef256bab38db5a7226d29a8b68546f093b78dd8