Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoSuggestBox works on Android #1069

Merged
merged 8 commits into from
Jun 13, 2019

Conversation

davidjohnoliver
Copy link
Contributor

@davidjohnoliver davidjohnoliver commented Jun 13, 2019

  • fix hangs, crashes
  • ensure user can keep typing after suggestions appear. This is still somewhat limited relative to UWP, eg trying to change the position of the cursor will close the suggestions dropdown.

GitHub Issue (If applicable): fixes #1012

PR Type

What kind of change does this PR introduce?

Bugfix

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Trap invalid item requests from BufferViewCache in managed code
Handle 0-height items more gracefully (ie, don't crash). Seems like 0-height items can occur temporarily in certain scenarios (ListViewItem doesn't have Template because Style isn't applied yet, but ContentControl.IsContentPresenterBypassEnabled recognises that it *will* have a template, and therefore doesn't materialize an ImplicitTextBlock.)
Allow user to keep typing after suggestions appear. This is still somewhat limited relative to UWP, eg trying to change the position of the cursor will close the suggestions dropdown.
This fixes crashes on Android from inconsistent state caused by measuring the native RecyclerView before it has been notified of added items.
davidjohnoliver and others added 2 commits June 13, 2019 13:02
Co-Authored-By: David <github.site@torick.net>
@davidjohnoliver davidjohnoliver merged commit 31943fd into master Jun 13, 2019
@davidjohnoliver davidjohnoliver deleted the dev/djo/autosuggestbox-android-fix branch June 13, 2019 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android AutoSuggestBox Suggestion Stops Working
4 participants