[Android] Add null check to prevent crashes when long clicking a text entry in ListVi...
authorPaul DiPietro <pauldipietro@users.noreply.github.com>
Tue, 2 Aug 2016 16:15:35 +0000 (11:15 -0500)
committerSamantha Houts <samantha@teamredwall.com>
Tue, 2 Aug 2016 16:15:35 +0000 (09:15 -0700)
commitac44cf9dec53b3b8be1836f20479f01820f3667f
tree3b5ebf0580020e3ef5fc4d73d51e87c50f608719
parentea01c07aa32e39e947104253a44566dded50123e
[Android] Add null check to prevent crashes when long clicking a text entry in ListView header/footer (#271)

When a text entry control (Entry, Editor, SearchBar, etc.) was being used in the header or
footer of a ListView on Android, a long click/press would cause a crash. This was occurring
in the HandleContextMode method because it expected to be a cell. Adding a null check and
breaking out of the method if the value from GetCellForPosition is null prevents this crash
from occurring.
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla40858.cs [new file with mode: 0644]
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
Xamarin.Forms.Platform.Android/CellAdapter.cs