Crazy-Marvin / ToDont

The reverse to-do list
https://crazymarvin.com/todont
Apache License 2.0
145 stars 29 forks source link

Solving the single quote bug for both labels and note + selected label in the spinner #165

Closed subeep closed 2 years ago

subeep commented 2 years ago

The bug that is solved in this is mentioned in #66. This bug was instigated whenever there was a single quote ( ' ) present in the label or a note. This was because SQLite considers a single quote as an endpoint for a string and that was the reason for it. And I used continuous single quotes ('') replacing single quotes while adding and displaying which prevents it from crashing now because SQL exempts continuous single quotes. It was done in all the page adapters.

I also upgraded the feature of the selected spinner of a habit which wasn't done before and it would select the first label rather than the label that is actually selected in the database.

subeep commented 2 years ago

@CrazyMarvin Done.

CrazyMarvin commented 2 years ago

Thank you very much! 👍