Skip to content

Fix crash when restoring state on TextFragment #671

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

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

esensar
Copy link
Contributor

@esensar esensar commented Aug 16, 2023

onViewStateRestored() in TextFragment crashed with ClassCastException, because layout has MyEditText with id text_note_view and not MyTextView. This has now been changed to TextView to ensure less breaking in the future and since only text was changed, this is enough.

This happened when viewing notes and causing configuration change or something else that would cause the state to be restored.

`onViewStateRestored()` in TextFragment crashed with `ClassCastException`,
because layout has `MyEditText` with id `text_note_view` and not `MyTextView`.
This has now been changed to `TextView` to ensure less breaking in the future
and since only `text` was changed, this is enough.

This happened when viewing notes and causing configuration change or something else
that would cause the state to be restored.
@tibbi tibbi merged commit 6e7976c into SimpleMobileTools:master Aug 16, 2023
@esensar esensar deleted the view-state-restore-crash branch August 16, 2023 17:06
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.

2 participants