Skip to content
Commit d7abdd72 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[CS] Define DisplayMetricsRepo and use it for QsFrameTranslateImpl.

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
parent 59d74fa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment