File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/Controls/src/Core/Handlers/Items/Android Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -286,12 +286,18 @@ public virtual void UpdateCanReorderItems()
286286
287287 public virtual void UpdateLayoutManager ( )
288288 {
289- _layoutPropertyChangedProxy ? . Unsubscribe ( ) ;
289+ var itemsLayout = _getItemsLayout ( ) ;
290+
291+ if ( itemsLayout == ItemsLayout )
292+ {
293+ return ;
294+ }
290295
291- ItemsLayout = _getItemsLayout ( ) ;
296+ _layoutPropertyChangedProxy ? . Unsubscribe ( ) ;
297+ ItemsLayout = itemsLayout ;
292298
293299 // Keep track of the ItemsLayout's property changes
294- if ( ItemsLayout != null )
300+ if ( ItemsLayout is not null )
295301 {
296302 _layoutPropertyChanged ??= LayoutPropertyChanged ;
297303 _layoutPropertyChangedProxy = new WeakNotifyPropertyChangedProxy ( ItemsLayout , _layoutPropertyChanged ) ;
You can’t perform that action at this time.
0 commit comments