Skip to content

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