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

Commit 58b91575 authored by Xavier Ducrohet's avatar Xavier Ducrohet Committed by Android (Google) Code Review
Browse files

Merge "LayoutLib: Fix native delegate for Display."

parents 51e6e3f2 387d078e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,14 +47,14 @@ public class Display_Delegate {

    @LayoutlibDelegate
    /** @hide special for when we are faking the screen size. */
    /*package*/ static int getRawWidth(Display theDisplay) {
    /*package*/ static int getRawWidthNative(Display theDisplay) {
        // same as real since we're not faking compatibility mode.
        return RenderAction.getCurrentContext().getIWindowManager().getMetrics().widthPixels;
    }

    @LayoutlibDelegate
    /** @hide special for when we are faking the screen size. */
    /*package*/ static int getRawHeight(Display theDisplay) {
    /*package*/ static int getRawHeightNative(Display theDisplay) {
        // same as real since we're not faking compatibility mode.
        return RenderAction.getCurrentContext().getIWindowManager().getMetrics().heightPixels;
    }