File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1515[ assembly: ExportRenderer ( typeof ( ContextMenuScrollView ) , typeof ( ContextMenuScrollViewRenderer ) ) ]
1616namespace ContextMenu . Droid
1717{
18+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1819 [ Obsolete ]
1920 [ Preserve ( AllMembers = true ) ]
2021 public class ContextMenuScrollViewRenderer : ScrollViewRenderer
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ public override void OnAttachedToWindow()
127127
128128 var attachedField = typeof ( ScrollViewRenderer ) . GetField ( "_isAttached" , BindingFlags . NonPublic | BindingFlags . Instance ) ;
129129 attachedField . SetValue ( this , false ) ;
130+ ( Element as BaseContextMenuView ) ? . ForceClose ( false ) ;
130131 }
131132
132133 protected override void OnDetachedFromWindow ( )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class BaseItemsViewModel : BaseViewModel
1212 public ICommand DeleteCommand => _deleteCommand ?? ( _deleteCommand = new Command ( item =>
1313 {
1414 var model = item as Item ;
15- model ? . ForceCloseCommand ? . Execute ( false ) ; // OneWayToSource binding. So we call Close method without animation
15+ // model?.ForceCloseCommand?.Execute(false); // OneWayToSource binding. So we call Close method without animation
1616 Items . Remove ( model ) ;
1717 } ) ) ;
1818
You can’t perform that action at this time.
0 commit comments