This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Add null check to prevent crashes when long clicking a text entry in ListView header/footer #271
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… entry in ListView header/footer 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.
👍 with passing UI tests |
👍 |
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread. |
myroot
added a commit
to myroot/Xamarin.Forms
that referenced
this pull request
Feb 24, 2019
* Tizen CollectionView implementation initial commit - first working version - only support LinearLayout(listview) * Add more feature * Implement INotifyCollectionChanged * Implement EmptyView * Implemnt SnapPoints, ScrollTo * Fix MakeVisible option * Add GridLayoutManager (xamarin#271) * Fix GetScrollCanvasSize issue * Enhance ItemAdaptor - Measure Item size with data binding Item size is determined with first item - Extract ItemDefaultTemplateAdaptor from ItemTemplateAdaptor * Remove debug message * Implement SelectableItemsView * Fix ghost view issue * Fix TV profile button effect issue * Clean up code space and refactoring ScrollTo method
rmarinho
pushed a commit
that referenced
this pull request
Mar 14, 2019
* [Tizen] Add CollectionView Tizen Renderer (#259) * Tizen CollectionView implementation initial commit - first working version - only support LinearLayout(listview) * Add more feature * Implement INotifyCollectionChanged * Implement EmptyView * Implemnt SnapPoints, ScrollTo * Fix MakeVisible option * Add GridLayoutManager (#271) * Fix GetScrollCanvasSize issue * Enhance ItemAdaptor - Measure Item size with data binding Item size is determined with first item - Extract ItemDefaultTemplateAdaptor from ItemTemplateAdaptor * Remove debug message * Implement SelectableItemsView * Fix ghost view issue * Fix TV profile button effect issue * Clean up code space and refactoring ScrollTo method * Fix collectionView emptyview (#277)
adrianknight89
pushed a commit
to adrianknight89/Xamarin.Forms
that referenced
this pull request
Mar 29, 2019
…n#3172 * [Tizen] Add CollectionView Tizen Renderer (xamarin#259) * Tizen CollectionView implementation initial commit - first working version - only support LinearLayout(listview) * Add more feature * Implement INotifyCollectionChanged * Implement EmptyView * Implemnt SnapPoints, ScrollTo * Fix MakeVisible option * Add GridLayoutManager (xamarin#271) * Fix GetScrollCanvasSize issue * Enhance ItemAdaptor - Measure Item size with data binding Item size is determined with first item - Extract ItemDefaultTemplateAdaptor from ItemTemplateAdaptor * Remove debug message * Implement SelectableItemsView * Fix ghost view issue * Fix TV profile button effect issue * Clean up code space and refactoring ScrollTo method * Fix collectionView emptyview (xamarin#277)
codemillmatt
pushed a commit
to codemillmatt/Xamarin.Forms
that referenced
this pull request
Apr 19, 2019
…n#3172 * [Tizen] Add CollectionView Tizen Renderer (xamarin#259) * Tizen CollectionView implementation initial commit - first working version - only support LinearLayout(listview) * Add more feature * Implement INotifyCollectionChanged * Implement EmptyView * Implemnt SnapPoints, ScrollTo * Fix MakeVisible option * Add GridLayoutManager (xamarin#271) * Fix GetScrollCanvasSize issue * Enhance ItemAdaptor - Measure Item size with data binding Item size is determined with first item - Extract ItemDefaultTemplateAdaptor from ItemTemplateAdaptor * Remove debug message * Implement SelectableItemsView * Fix ghost view issue * Fix TV profile button effect issue * Clean up code space and refactoring ScrollTo method * Fix collectionView emptyview (xamarin#277)
AxelUser
pushed a commit
to AxelUser/Xamarin.Forms
that referenced
this pull request
Jun 15, 2019
…n#3172 * [Tizen] Add CollectionView Tizen Renderer (xamarin#259) * Tizen CollectionView implementation initial commit - first working version - only support LinearLayout(listview) * Add more feature * Implement INotifyCollectionChanged * Implement EmptyView * Implemnt SnapPoints, ScrollTo * Fix MakeVisible option * Add GridLayoutManager (xamarin#271) * Fix GetScrollCanvasSize issue * Enhance ItemAdaptor - Measure Item size with data binding Item size is determined with first item - Extract ItemDefaultTemplateAdaptor from ItemTemplateAdaptor * Remove debug message * Implement SelectableItemsView * Fix ghost view issue * Fix TV profile button effect issue * Clean up code space and refactoring ScrollTo method * Fix collectionView emptyview (xamarin#277)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
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 theHandleContextMode
method because it expected to be a cell. Adding a null check and breaking out of the method if the value fromGetCellForPosition
is null prevents this crash from occurring.Bugs Fixed
https://bugzilla.xamarin.com/show_bug.cgi?id=40858
API Changes
None
Behavioral Changes
None
PR Checklist