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

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

Merge "Don't create panel if content is empty"

parents e0378bd7 45ae74ea
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -914,6 +914,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(