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

Commit 3429ff53 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 5186258 - Incorrect window width is used for custom panel

views in the MATCH_PARENT case

Change-Id: I11c4a58303fa3c4a9f3540908c6409bacd84a35e
parent a8993e10
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -587,6 +587,13 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            }
        } else if (!st.isInListMode()) {
            width = MATCH_PARENT;
        } else if (st.createdPanelView != null) {
            // If we already had a panel view, carry width=MATCH_PARENT through
            // as we did above when it was created.
            ViewGroup.LayoutParams lp = st.createdPanelView.getLayoutParams();
            if (lp != null && lp.width == ViewGroup.LayoutParams.MATCH_PARENT) {
                width = MATCH_PARENT;
            }
        }

        st.isOpen = true;