Commit a24d322
committed
Fix crash when restoring state on TextFragment
`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.1 parent d98c9bc commit a24d322
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments