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

Commit 565b6807 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CP: Don't create panel if content is empty" into tm-qpr-dev

parents 23a5ae44 3c2bfc88
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -912,6 +912,12 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            }
        }

        if (!st.hasPanelItems()) {
            // Ensure that |st.decorView| has its actual content. Otherwise, an empty window can be
            // created and cause ANR.
            return;
        }

        st.isHandled = false;

        WindowManager.LayoutParams lp = new WindowManager.LayoutParams(