Yet-Zio / yetCalc

Yet another calculator designed and developed for Android
BSD 3-Clause "New" or "Revised" License
220 stars 17 forks source link

Wrong conversion for fluid ounces to ml #145

Open balki opened 1 week ago

balki commented 1 week ago

Steps to reproduce

  1. Open Converter -> volume
  2. Select fl oz US on top
  3. Select ml (millilitre) on bottom
  4. Enter 24 on top

0.024 is shown which is incorrect. Correct value is 709.xxx When changing units back to something else and then back to ml, correct value is shown

Demo:

https://github.com/user-attachments/assets/601a5e42-1b1d-4b90-ab3e-b5b31c94c9cc

Yet-Zio commented 1 week ago

Hi @balki, thanks for reporting the issue. However, I tried this on my device right now but couldn't reproduce the issue. Have a look:

https://github.com/user-attachments/assets/235b6c3d-f942-481f-b52b-6546d7a87b00

Which version of the app are you using? Did this occur every time?

balki commented 1 week ago

app version 1.1.4 from fdroid Yes, occurs every time.

balki commented 1 week ago

I had the setting Use Recent Tab turned on. Once I turn it off, it works correctly.

Yet-Zio commented 1 week ago

Okay I finally encountered the issue myself, when first installing the app, use recent tab is enabled by default. But the app does not know the recently used tab yet. I go to volume, the issue doesn't occur. I then disable use recent tab, still the issue does not occur.

But when I re enable use recent tab, the issue occurs and keeps occuring from then on until use recent tab is disabled. A fresh install can fix the issue. Anyway, I will look into why this occurs. Thanks