From: Pawel Andruszkiewicz Date: Tue, 3 Jan 2017 13:58:12 +0000 (+0100) Subject: [PickerRenderer] Remove unnecessary listener X-Git-Tag: accepted/tizen/common/20170324.122620~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0848a30c304f8c8bec6e8a9ce37d28a3c3c1ebf1;p=platform%2Fupstream%2Fxamarin-forms.git [PickerRenderer] Remove unnecessary listener Change-Id: I4c146c9e7594c48f3310588035427a622ef2460f Signed-off-by: Pawel Andruszkiewicz --- diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs index 9abd507..4508ccf 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/PickerRenderer.cs @@ -27,7 +27,6 @@ namespace Xamarin.Forms.Platform.Tizen if (e.OldElement != null) { Control.Clicked -= OnClick; - ((ObservableList)e.OldElement.Items).CollectionChanged -= RowsCollectionChanged; } if (e.NewElement != null) @@ -35,7 +34,6 @@ namespace Xamarin.Forms.Platform.Tizen UpdateSelectedIndex(); Control.Clicked += OnClick; - ((ObservableList)e.NewElement.Items).CollectionChanged += RowsCollectionChanged; } base.OnElementChanged(e); @@ -57,11 +55,6 @@ namespace Xamarin.Forms.Platform.Tizen "" : Element.Items[Element.SelectedIndex]); } - void RowsCollectionChanged(object sender, EventArgs e) - { - UpdateSelectedIndex(); - } - void OnClick(object sender, EventArgs e) { int i = 0;