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

Commit 04068586 authored by Alex Chau's avatar Alex Chau Committed by Automerger Merge Worker
Browse files

Log the display state when number of screen bounds is inconsistent am: 4f49c9ce

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16230738

Change-Id: I9acc687a7bf5944b3c87ed48feb8b3c01e4d27ec
parents 0c59f1ac 4f49c9ce
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -261,6 +261,13 @@ public class DisplayController implements DisplayListener, ComponentCallbacks, S
            PortraitSize realSize = new PortraitSize(newInfo.currentSize.x, newInfo.currentSize.y);
            PortraitSize expectedSize = oldInfo.mInternalDisplays.get(
                    ApiWrapper.getUniqueId(display));
            if (newInfo.supportedBounds.size() != oldInfo.supportedBounds.size()) {
                Log.e("b/198965093",
                        "Inconsistent number of displays"
                                + "\ndisplay state: " + display.getState()
                                + "\noldInfo.supportedBounds: " + oldInfo.supportedBounds
                                + "\nnewInfo.supportedBounds: " + newInfo.supportedBounds);
            }
            if (!realSize.equals(expectedSize) && display.getState() == Display.STATE_OFF) {
                Log.e("b/198965093", "Display size changed while display is off, ignoring change");
                return;