I am developing a book app where users can change the font size on the TextView.
when users change the font size, the app save the current text position not to chang
In my case, code was doing 0.0 / 0.0 resulting -nan (infinity) and used further for converting to double.
I added a guard condition to make sure values are > 0.0