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

Commit 78470718 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix various places that were using the wrong display metrics.

Change-Id: I1ac2a0c4a1b7c851dbc99d26f295c7dd49b0bd5c
parent 8ea5e1d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ class ScreenRotationAnimation {
        mContext = context;
        mDisplay = display;

        display.getMetrics(mDisplayMetrics);
        display.getRealMetrics(mDisplayMetrics);

        Bitmap screenshot = Surface.screenshot(0, 0);

@@ -244,7 +244,7 @@ class ScreenRotationAnimation {
                break;
        }

        mDisplay.getMetrics(mDisplayMetrics);
        mDisplay.getRealMetrics(mDisplayMetrics);

        // Initialize the animations.  This is a hack, redefining what "parent"
        // means to allow supplying the last and next size.  In this definition
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class StrictModeFlash {

    public StrictModeFlash(Display display, SurfaceSession session) {
        final DisplayMetrics dm = new DisplayMetrics();
        display.getMetrics(dm);
        display.getRealMetrics(dm);

        try {
            mSurface = new Surface(session, 0, "StrictModeFlash", -1, 1, 1, PixelFormat.TRANSLUCENT, 0);
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ class Watermark {

    Watermark(Display display, SurfaceSession session, String[] tokens) {
        final DisplayMetrics dm = new DisplayMetrics();
        display.getMetrics(dm);
        display.getRealMetrics(dm);

        if (false) {
            Log.i(WindowManagerService.TAG, "*********************** WATERMARK");