victordiaz / PHONK

PHONK is a coding playground for new and old Android devices

Home Page:https://phonk.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Knob `decimals()` method has no effect

Jakoma02 opened this issue · comments

It seems to me that the decimals() method of a knob has no effect (as opposed to changing the number of displayed decimal places). The bug can be easily reproduced by using the method with any argument other than 2.

I believe that the problem lies in the PKnob java class, where the formatString is only used in the constructor to create a DecimalFormat instance df that is later used when drawing the knob. As the decimals() method only changes formatString, df never gets updated and the change has no effect.

Sorry if the mistake is on my side, I could have easily overlooked something.

Hello @Jakoma02
You are totally right, thanks for letting me know. I'm fixing it ASAP and include it in tonight's release :)

@Jakoma02 the new version is uploaded and should be online soon, feel free to try it and let me know if it works as expected.
Thanks

I close this issue since it is resolved