Skip to content
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

fix(Profile) note save crash #507

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

FineFindus
Copy link

Fixes an issue, where the context used for displaying the note saved toast could sometimes be null on actual device. I did not encounter this on the emulator. My best guess is that, since currently, the note is only saved once actually exiting the fragment, and not on back pressing, the fragment context has already been cleaned up.

Uses the global context for displaying the note saved toast. When using
the local context, it was somehow, sometimes null, leading to crashes.
The note text field being hidden is already enough comfirmation that the
note has been hidden.
Fixes an issue, where if the NoteTextField was focussed and the note was
hidden, the note would saved and reshown once the NoteTextField was
hidden.
@LucasGGamerM LucasGGamerM merged commit 4aecb17 into LucasGGamerM:master Aug 14, 2024
1 check passed
@FineFindus FineFindus deleted the fix/note-save-crash branch August 14, 2024 19:27
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