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

[iOS] Fix issue disposing the EmptyView #12377

Merged
merged 5 commits into from
Nov 16, 2020
Merged

[iOS] Fix issue disposing the EmptyView #12377

merged 5 commits into from
Nov 16, 2020

Conversation

jsuarezruiz
Copy link
Contributor

@jsuarezruiz jsuarezruiz commented Oct 6, 2020

Description of Change

Hiding the native EmptyView we removed it from the superview (UICollectionView). This PR include changes to dispose the view and set it to null. This way, after show again the EmptyView, creates a new one and does not attempt to access a disposed view.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

fix12374

Testing Procedure

Launch Core Gallery and navigate to the issue 12374. Tap each item to remove them and view the EmptyView. Then, tap the AddItems button. Without crash, the test has passed.

PR Checklist

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

@samhouts samhouts added i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often hacktoberfest-accepted hacktoberfest 🍻 labels Oct 7, 2020
@vniehues
Copy link

When will this be merged?
Is anything missing?

@samhouts samhouts added this to In Review in vNext+1 (5.0.0) Nov 2, 2020
@PureWeen PureWeen added this to In progress in v5.0.1 via automation Nov 5, 2020
@PureWeen PureWeen removed this from In Review in vNext+1 (5.0.0) Nov 5, 2020
@rmarinho
Copy link
Member

rmarinho commented Nov 9, 2020

Can you add a UITest @jsuarezruiz ?

@rmarinho rmarinho added this to To do in vNext+1 (5.0.0) via automation Nov 9, 2020
@rmarinho rmarinho removed this from In progress in v5.0.1 Nov 9, 2020
@jsuarezruiz
Copy link
Contributor Author

Added UITest.

@beeradmoore
Copy link
Contributor

What timing. I came back yesterday to see what progress was on this issue because I've hit a bunch of other XF5 issues I've been slogging through. Good to see its fixed though! Thanks @jsuarezruiz

@rmarinho rmarinho moved this from To do to Done in vNext+1 (5.0.0) Nov 13, 2020
@rmarinho rmarinho moved this from Done to In Review in vNext+1 (5.0.0) Nov 13, 2020
@rmarinho rmarinho added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label Nov 16, 2020
@rmarinho rmarinho merged commit 1c41635 into 5.0.0 Nov 16, 2020
vNext+1 (5.0.0) automation moved this from In Review to Done Nov 16, 2020
@rmarinho rmarinho deleted the fix-12374 branch November 16, 2020 19:04
@vniehues
Copy link

Today after updating to the newest preview of XF my EmptyViews were just not showing anymore and a tap in the area where the EmptyView is supposed to be just crashed the app (SIGSEGV). Only tested on iOS.

@rmarinho
Copy link
Member

Sorry @vniehues but it didn't make into pre4, but is merged for the next pre--

Can you try this nugets and see if it fixes your issue..

debug (11).zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/carouselview a/collectionview blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. hacktoberfest 🍻 hacktoberfest-accepted i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression p/iOS 🍎 t/bug 🐛
Projects
No open projects
6 participants