Glucosio / glucosio-android

Glucosio Android App
GNU General Public License v3.0
338 stars 162 forks source link

Weight entry broken after unit change #407

Closed chwalters closed 6 years ago

chwalters commented 6 years ago

I installed the app, added a weight. Realized I wanted to switch units from kg to pounds. So I deleted the first body weight reading. Then, I went back to settings and changed units to pounds. Then went back and added another reading and the value shows as some weird number after I entered it. Probably the kg value but with pounds label and lots of decimal places. Anyway, weight entry seems a little broken when changing units

To reproduce - install app, accept defaults for units

  1. Add glucose reading - since weight is not available for first entry
  2. Add weight entry, notice that default unit is kg
  3. Delete entry
  4. Go to settings, change preferred weight units to lbs
  5. Go back and add a weight reading.
  6. Save the weight reading
  7. Go to history, body weight, click and hold the new weight reading
  8. Editor shows wrong value but label indicates correct units

In my example, 175.5 lbs gets converted on the edit screen to 79.60555560595478

chwalters commented 6 years ago

Believe fixed in 1.5