Temporary workaround for app crashing#5
Temporary workaround for app crashing#5certified84 merged 5 commits intocertified84:v0.1.4from gdonisi:v0.1.4
Conversation
|
Third commit, I think using a timestamp instead of the note title as filename is better, I have two main reasons:
|
certified84
left a comment
There was a problem hiding this comment.
Hi there @gdonisi,
Well done so far. Saving a recording with the current time instead of the note title was always something I considered working on and I'm happy you already did. I'm also happy you found a better way of handling the roundOffDecimal() function.
Before merging this PR, I'd like to understand why you changed all the requireContext() to context.
|
Sure, it's just my style of coding: when I make a lot of calls to the same function like this, I prefer to have one variable to store the value (the context in this case) and use it instead of calling always the function. |
|
Its fine since there are no changes to the behavior. Well done mate 🙌🙌 |

The app is basically useless if it crashes before saving a note. This should fix #2 and gives you time to find a better solution if needed, because probably this isn't a perfect code style.
Tested with these languages as system default: English, Italian, French, German.