Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28eb7637 authored by zhiyuan.hu's avatar zhiyuan.hu Committed by zhiyuan hu
Browse files

Use getRealSize instead of getRealSize in DocumentsUI

DocumentsUI should get Real Size to draw when the phone rotate screen after
split screen.

Bug:122939717
Test: make DocumentsUI
Change-Id: I21cfd3c8f485901934aa8ac05986448ecd2ed602
parent 6d708886
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public final class Display {
     */
    public static float screenWidth(Activity activity) {
        Point size = new Point();
        activity.getWindowManager().getDefaultDisplay().getSize(size);
        activity.getWindowManager().getDefaultDisplay().getRealSize(size);
        return size.x;
    }