summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-02-06 05:59:11 -0600
committerRui Marinho <me@ruimarinho.net>2017-02-06 11:59:11 +0000
commit28237b7b27ef318b2c811e9829c2442613c42feb (patch)
tree78a91ae8be6dd37b03c2f345b54c07472d7f58b9 /Xamarin.Forms.Platform.Android
parentc29403ac31aa689df97aa1d99c95e25d93c428c2 (diff)
downloadxamarin-forms-28237b7b27ef318b2c811e9829c2442613c42feb.tar.gz
xamarin-forms-28237b7b27ef318b2c811e9829c2442613c42feb.tar.bz2
xamarin-forms-28237b7b27ef318b2c811e9829c2442613c42feb.zip
[iOS/Android] Handle item selection highlight when ListView cell is tapped erratically (#520)
* Fix multi tap selection highlight * added sample code * add ios fix
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
index 245c3d74..1ff11f4a 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
@@ -371,8 +371,9 @@ namespace Xamarin.Forms.Platform.Android
if (position < 0 || position >= Count)
return;
+ if(_lastSelected != view)
+ _fromNative = true;
Select(position, view);
- _fromNative = true;
Controller.NotifyRowTapped(position, cell);
}