-
Notifications
You must be signed in to change notification settings - Fork 48
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
Crash on Android after closing app with tab group and infinite scroll #48
Comments
Probably because cleanup calls detach and detach calls state and state... does stuff with objects already destroyed because you close the tab/app. The only thing however related to the activity indicator is hiding it: Try commenting out stuff to see if that solves it. However, I must say I never use cleanup and only use detach if I reached the end and want to get rid of the infinite scroll. |
It's the indicator... for sure. But the activity is already gone, because the tabs have no activity themselves. |
And does commenting out the state() call in detach() solve it? |
Yep it does... But do you want that? Verstuurd vanaf mijn iPhone
|
No, but if you have time and could trace back which line exactly inside state() is causing the crash then we can maybe add a validation to catch the exception. |
As I mentioned, it's the $.isIndicator.hide(). The whole activity is already gone so it cannot hide anything anymore. You want to cleanup but maybe leave out the footer related objects. Verstuurd vanaf mijn iPhone
|
Would you be able to do a PR? I don't have much time to look at it soon. |
Making sure UI elements still exists when doing the state function. Fixing #48
@jvandijk would linked PR fix it for you? (I know it is an old issue, but I'd like to know regardless) |
I can functionally check this somewhere this week. Will keep you updated! |
Hi, used latest code but still have an error in Java code, by doing
It works on Android. Regards |
I've created an app with a tab group in the root window.
A single tab has infinite scroll logic. When I click the back button to close the app, I experience a crash, but only when using
$.is.detach
or$.is.cleanup
.It seems the tab group is already doing some cleaning up, because the code is running to an error when trying to execute
$.isIndicator.hide()
The log shows the following:
Not using the cleanup methods solves the problem, but that's not what you want.
The text was updated successfully, but these errors were encountered: