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

Commit 397129f5 authored by Tiger's avatar Tiger
Browse files

Add log to debug why the window frame could be empty

Bug: 298562855
Test: presubmit
Change-Id: I98ad4dfc6fad0db3976b70cb359a2894f887c119
parent 520c9b33
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -2494,6 +2494,14 @@ public class WindowManagerService extends IWindowManager.Stub
                outInsetsState.set(win.getCompatInsetsState(), true /* copySources */);
                outInsetsState.set(win.getCompatInsetsState(), true /* copySources */);
            }
            }


            // TODO (b/298562855): Remove this after identifying the reason why the frame is empty.
            if (win.mAttrs.providedInsets != null && win.getFrame().isEmpty()) {
                Slog.w(TAG, "Empty frame of " + win
                        + " configChanged=" + configChanged
                        + " frame=" + win.getFrame().toShortString()
                        + " attrs=" + attrs);
            }

            ProtoLog.v(WM_DEBUG_FOCUS, "Relayout of %s: focusMayChange=%b",
            ProtoLog.v(WM_DEBUG_FOCUS, "Relayout of %s: focusMayChange=%b",
                    win, focusMayChange);
                    win, focusMayChange);