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

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

Fix issue #4592768: Xoom display does not resize when...

...plugging in HDMI cable connected to a HDMI monitor

Change-Id: If3394e972131aa5124db2d1abf23b2214512773a
parent 0a8a2324
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public class HeightReceiver extends BroadcastReceiver {
        int height = -1;
        if (plugged) {
            final DisplayMetrics metrics = new DisplayMetrics();
            mWindowManager.getDefaultDisplay().getMetrics(metrics);
            mWindowManager.getDefaultDisplay().getRealMetrics(metrics);
            //Slog.i(TAG, "setPlugged: display metrics=" + metrics);
            final int shortSide = Math.min(metrics.widthPixels, metrics.heightPixels);
            height = shortSide - 720;