AndroidAPS
AndroidAPS copied to clipboard
[Visual Bug] Word-wrapping occurs with negative insulin amounts in Bolus Wizard in some instances
As noted in https://github.com/nightscout/AndroidAPS/issues/3798, when there is a negative insulin amount involved in the calculations, the "U" after the insulin amount wraps to the next line, in some circumstances. This occurs on my Pixel 9 Pro with what, I think, was the default font size (though I can't be 100% sure I didn't change it on installation), but can be reproduced/resolved on any device, including Android Studio emulator devices, by adjusting the font size on the device, to anything larger than the 2nd smallest font size (out of 7 available sizes).
The easiest way to reproduce it in emulator is to:
- open any/generic AVD (eg. medium API 35) and run AAPS (or use your own device)
- Open the Bolus calculator
- It is not necessary to have any real SG data or insulin history, just enter a negative correction amount (if necessary) so that there is at least one negative insulin value shown
- Open the Device UI shortcuts menu/button, and change the font size to anything larger than the 2nd smallest option
- The changed font size and "U" wrapping can be seen in the underlying AAPS Bolus wizard screen, even without closing the UI menu.