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: I6c02a0297f13958690d53c8b1aab60745bb9e78e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -899,8 +899,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
|
|||||||
final DisplayInfo displayInfo = new DisplayInfo();
|
final DisplayInfo displayInfo = new DisplayInfo();
|
||||||
mContext.getDisplay().getDisplayInfo(displayInfo);
|
mContext.getDisplay().getDisplayInfo(displayInfo);
|
||||||
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
|
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
|
||||||
stableDisplaySize.x, stableDisplaySize.y, displayInfo.logicalWidth,
|
stableDisplaySize.x, stableDisplaySize.y, displayInfo.getNaturalWidth(),
|
||||||
displayInfo.logicalHeight);
|
displayInfo.getNaturalHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user