Loading policy/src/com/android/internal/policy/impl/PhoneWindow.java +11 −1 Original line number Diff line number Diff line Loading @@ -511,7 +511,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } // This will populate st.shownPanelView if (!initializePanelContent(st) || (st.shownPanelView == null)) { if (!initializePanelContent(st) || !st.hasPanelItems()) { return; } Loading Loading @@ -2976,6 +2976,16 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { refreshDecorView = false; } public boolean hasPanelItems() { if (shownPanelView == null) return false; if (isInExpandedMode) { return expandedMenuPresenter.getAdapter().getCount() > 0; } else { return ((ViewGroup) shownPanelView).getChildCount() > 0; } } /** * Unregister and free attached MenuPresenters. They will be recreated as needed. */ Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindow.java +11 −1 Original line number Diff line number Diff line Loading @@ -511,7 +511,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } // This will populate st.shownPanelView if (!initializePanelContent(st) || (st.shownPanelView == null)) { if (!initializePanelContent(st) || !st.hasPanelItems()) { return; } Loading Loading @@ -2976,6 +2976,16 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { refreshDecorView = false; } public boolean hasPanelItems() { if (shownPanelView == null) return false; if (isInExpandedMode) { return expandedMenuPresenter.getAdapter().getCount() > 0; } else { return ((ViewGroup) shownPanelView).getChildCount() > 0; } } /** * Unregister and free attached MenuPresenters. They will be recreated as needed. */ Loading