diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2016-10-11 16:39:18 -0500 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2016-10-11 14:39:18 -0700 |
commit | 9a5dab9424b57a81e4a4132cbf73ddeca1cfd4ef (patch) | |
tree | bd6114d938eb171827c62bbf74685aa9cc2f323c /Xamarin.Forms.Platform.iOS | |
parent | 7870aefc688f20cc7ad2e6251a9f3a26d6601d1d (diff) | |
download | xamarin-forms-9a5dab9424b57a81e4a4132cbf73ddeca1cfd4ef.tar.gz xamarin-forms-9a5dab9424b57a81e4a4132cbf73ddeca1cfd4ef.tar.bz2 xamarin-forms-9a5dab9424b57a81e4a4132cbf73ddeca1cfd4ef.zip |
[iOS] Tapping on ListView with two fingers should not crash (#379)
* Tapping on ListView with two fingers should not crash
* Revert "Tapping on ListView with two fingers should not crash"
This reverts commit 0b0752f3cfdbb1c29678d75bd18c5a00e564d77b.
* code without refactoring
* moving up selector check
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/ContextActionCell.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs index bb7bea1a..74f354c5 100644 --- a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs +++ b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs @@ -661,8 +661,10 @@ namespace Xamarin.Forms.Platform.iOS { var selector = (SelectGestureRecognizer)recognizer; - var table = (UITableView)recognizer.View; + if (selector._lastPath == null) + return; + var table = (UITableView)recognizer.View; if (!selector._lastPath.Equals(table.IndexPathForSelectedRow)) table.SelectRow(selector._lastPath, false, UITableViewScrollPosition.None); table.Source.RowSelected(table, selector._lastPath); |