diff options
| author | 2022-05-05 04:35:20 +0000 | |
|---|---|---|
| committer | 2022-05-05 04:35:20 +0000 | |
| commit | 05237b5854b9f7711f7757c88adfe66b8763de8c (patch) | |
| tree | eff0c49c97c2c142b91762c46509e11b06c34adf | |
| parent | 1e2ddcc2b71d879896b5c046d01047d14be8ed6c (diff) | |
| parent | 0281d742e268f89aa0d62e4fdba89a9352e049ed (diff) | |
Merge "Fix physical display ratio incorrect" into tm-dev am: e266bac2bf am: 0281d742e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18157811
Change-Id: I361f59b21d2a704a6a53201441ea4a1cf489569e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/ScreenDecorations.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 8d6509874776..cbce854e4a71 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -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 |