You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ContextMenu] Improvements to Android icon and auto-close when app goes to background (#324)
* made sure android does not crash if you add a icon to a context menu item
* made sure we close the context menu when the app goes from background to foreground
* made sure we close the context menu when the app goes to background on ios
menuHelper.SetForceShowIcon(m_menuItems.Keys.Any(contextMenuItem =>!string.IsNullOrEmpty(contextMenuItem.Icon)||!string.IsNullOrEmpty(contextMenuItem.AndroidOptions.IconResourceName)));//Show icons if there is any context menu items with a icon added
m_menuHelper.SetForceShowIcon(m_menuItems.Keys.Any(contextMenuItem =>!string.IsNullOrEmpty(contextMenuItem.Icon)||!string.IsNullOrEmpty(contextMenuItem.AndroidOptions.IconResourceName)));//Show icons if there is any context menu items with a icon added
70
+
m_menuHelper.Show();
65
71
m_contextMenuButton.SendContextMenuOpened();
66
72
}
67
73
@@ -98,5 +104,38 @@ public bool OnMenuItemClick(IMenuItem theTappedNativeItem)
0 commit comments