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

Commit 3b698d18 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android Git Automerger
Browse files

am 9d8c6215: Merge "Account for race condition when attaching HDMI." into honeycomb-mr1

* commit '9d8c6215':
  Account for race condition when attaching HDMI.
parents 3ed0a1ec 9d8c6215
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -77,7 +77,9 @@ public class HeightReceiver extends BroadcastReceiver {
        if (plugged) {
            final DisplayMetrics metrics = new DisplayMetrics();
            mWindowManager.getDefaultDisplay().getMetrics(metrics);
            height = metrics.heightPixels - 720;
            //Slog.i(TAG, "setPlugged: display metrics=" + metrics);
            final int shortSide = Math.min(metrics.widthPixels, metrics.heightPixels);
            height = shortSide - 720;
        }

        final int minHeight