Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit a37f2cb

Browse files
authored
[Android] Remove dead code, fix the indicator position on load (#9502)
1 parent 8aefd90 commit a37f2cb

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Xamarin.Forms.Platform.Android/CollectionView/IndicatorViewRenderer.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,8 @@ void SetUpNewElement(IndicatorView newElement)
198198
UpdateItemsSource();
199199

200200
ElevationHelper.SetElevation(this, newElement);
201-
}
202201

203-
void IndicatorsViewItemSourcePropertyChanged(object sender, PropertyChangedEventArgs changedProperty)
204-
{
205-
if (changedProperty.Is(ItemsView.ItemsSourceProperty))
206-
{
207-
UpdateItemsSource();
208-
}
209-
else if (changedProperty.Is(SelectableItemsView.SelectedItemProperty))
210-
{
211-
UpdateSelectedIndicator();
212-
}
202+
UpdateSelectedIndicator();
213203
}
214204

215205
void UpdateSelectedIndicator()

0 commit comments

Comments
 (0)