Using system API for rotating DisplayCutout instead of rotating it ourselves
Bug: 321913010 Flag: NONE Test: Manual Change-Id: Iebbc8c17dc3b92a73866b7e22dfbde18eb3a52ff
This commit is contained in:
1 parent
c5be03f062
commit
a90500d233
7 files changed
+79
-57
No files matched your search
@@ -362,10 +362,10 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
WindowManagerProxy wmProxy,
|
||||
Map<CachedDisplayInfo, List<WindowBounds>> perDisplayBoundsCache) {
|
||||
CachedDisplayInfo displayInfo = wmProxy.getDisplayInfo(displayInfoContext);
|
||||
normalizedDisplayInfo = displayInfo.normalize();
|
||||
normalizedDisplayInfo = displayInfo.normalize(wmProxy);
|
||||
rotation = displayInfo.rotation;
|
||||
currentSize = displayInfo.size;
|
||||
cutout = displayInfo.cutout;
|
||||
cutout = WindowManagerProxy.getSafeInsets(displayInfo.cutout);
|
||||
|
||||
Configuration config = displayInfoContext.getResources().getConfiguration();
|
||||
fontScale = config.fontScale;
|
||||
|
||||
Reference in new issue
Block a user