Merge "Fix physical display ratio incorrect" into tm-dev am: e266bac2bf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18157811

Change-Id: Icf66fa17216dfd0a8a0cdb7c4b48c43f5cb064b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-05-05 03:26:35 +00:00
committed by Automerger Merge Worker

View File

@@ -899,8 +899,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
final DisplayInfo displayInfo = new DisplayInfo();
mContext.getDisplay().getDisplayInfo(displayInfo);
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
stableDisplaySize.x, stableDisplaySize.y, displayInfo.logicalWidth,
displayInfo.logicalHeight);
stableDisplaySize.x, stableDisplaySize.y, displayInfo.getNaturalWidth(),
displayInfo.getNaturalHeight());
}
@Override