Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Refactor Entry ClearButton observer lifecycle to prevent NRE on older iOS versions #14828

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Nov 3, 2021

Description of Change

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

No more crash on older iOS versions

Before/After Screenshots

Not applicable

Testing Procedure

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jfversluis
Copy link
Member Author

@rotorgames could you please test if your fix is still intact like this?

@lee-m, would you be able to grab the NuGet as described here and let us know if this fixes this issue? That will greatly speed up the review process.

Besides verifying if this particular issue is fixed also be sure to check other scenarios in the same area to make sure that this fix doesn't accidentally has side-effects 🙂

Thanks!

@lee-m
Copy link
Contributor

lee-m commented Nov 3, 2021

@jfversluis Certainly. I'll let you know how I get on.

@lee-m
Copy link
Contributor

lee-m commented Nov 4, 2021

@jfversluis I'm not seeing the crash anymore using the preview NuGet package for this PR.

@jfversluis
Copy link
Member Author

Perfect, thank you so much for testing this!

@rotorgames I would really appreciate your feedback on this as well :)

@jfversluis jfversluis merged commit f95f671 into 5.0.0 Nov 8, 2021
@jfversluis jfversluis deleted the fix-14804 branch November 8, 2021 08:04
jfversluis added a commit that referenced this pull request Nov 9, 2021
jfversluis added a commit that referenced this pull request Nov 10, 2021
* Revert "Refactor observer lifecycle (#14828)"

This reverts commit f95f671.

* Implement fix from Javier (#14790)

Co-Authored-By: Javier Suárez <javiersuarezruiz@hotmail.com>

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
jfversluis added a commit that referenced this pull request Nov 16, 2021
jfversluis added a commit that referenced this pull request Nov 16, 2021
* Revert "Fix hangs and NREs with Entry Observer (#14859)"

This reverts commit 5188c4f.

* Revert "Refactor observer lifecycle (#14828)"

This reverts commit f95f671.

* Revert "Fix crashing on iOS < 14 if ClearButtonVisibility = WhileEditing in Entry (#14479 #14510) (#14526)"

This reverts commit a21b36a.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.