-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MvxLayoutInflater Disposed exception #1924
Comments
Please use the latest version of MvvmCross. 4.4.0 contains lots of MvxRecyclerView bugs. |
I don't think this a MvxRecyclerView bug, because problem with BindingContext of Fragment.
If I wrote this, everything would work as aspected. |
There have been a lot of fixes there too :) |
Too push new version of mvvmcross is too big for us right now. |
You could do this:
If not, just throw away the branch, no harm done. |
I have this problem with an adapter inside a fragment => mvvmcross 5.3.1. Only one fragment cause the problem. i will investigate Stack:
|
@Thetyne please open a new issue with repro steps. Closing this one as it is stale and yours doesn't seem to relate to this one directly. |
To help us fix your issue, please provide the information in the below template.
Hi guys, I need a help with mysterious bug that I can't understand how it happening.
The situation is very complicated and hope I can create test project for that.
I have initial android Activity with 4 fragments. For every fragment I'm using ViewStub to load it lazy. On first start i'm load first fragment. There are just simple RecyclerView. I select any item. Item will open next activity where I can do upload data to the server. The data can be like ~30 mb. While I uploading a data I fast close that activity and try to click on next fragment (toolbar).
When fragment appear I try to inflate ViewStub.
Second fragment is living in separate project. But I don't think this is a problem.
If I check
this.BindingContext
if would find that LayoutInflaterHolder LayoutInflater is Disposed.When viewStub start to inflate , it try to inflate MvxRecyclerView Holder and getting from stack disposed MvxLayoutInflater and then me give exception.
It's very interesting if I open other fragments, there are fine.
How I fixed for right now, I manually create new LayoutInflaterHolder with new MvxLayoutInfalter.
The project is too big to create sample fast. I hope I can reproduce it at test repository with same behavior.
Any advices or any ideas I would appreciate.
Thank you.
Version:
4.4.0
Platform:
Android
The text was updated successfully, but these errors were encountered: