mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Using the WindowMetrics API instead of display.getRealSize
Bug: 221961069 Bug: 195408476 Bug: 198965093 Test: Verified locally and presubmit Change-Id: I4dac9c19df4c43e6a38ba5c05f27d25f4cfcb071
This commit is contained in:
@@ -306,7 +306,7 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
public Info(Context context, Display display,
|
||||
WindowManagerProxy wmProxy,
|
||||
ArrayMap<String, Pair<CachedDisplayInfo, WindowBounds[]>> perDisplayBoundsCache) {
|
||||
CachedDisplayInfo displayInfo = wmProxy.getDisplayInfo(display);
|
||||
CachedDisplayInfo displayInfo = wmProxy.getDisplayInfo(context, display);
|
||||
rotation = displayInfo.rotation;
|
||||
currentSize = displayInfo.size;
|
||||
displayId = displayInfo.id;
|
||||
@@ -372,7 +372,7 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
pw.println(" id=" + info.displayId);
|
||||
pw.println(" rotation=" + info.rotation);
|
||||
pw.println(" fontScale=" + info.fontScale);
|
||||
pw.println(" densityDpi=" + info.displayId);
|
||||
pw.println(" densityDpi=" + info.densityDpi);
|
||||
pw.println(" navigationMode=" + info.navigationMode.name());
|
||||
pw.println(" currentSize=" + info.currentSize);
|
||||
pw.println(" supportedBounds=" + info.supportedBounds);
|
||||
|
||||
Reference in New Issue
Block a user