Updater confusing the units in progress bar
- /e/ version: 10 (QQ3A.200805.001)
- Device model(s): Fairphone 3
- Device rooted: no
Summary
While updating to /e/OS 0.18, I noted that the progress bar confuses the units.
The problem
Update the OS release and hope that the total size is displayed in units of GB.
What is the current behavior?
It says "138 of 0.96 GB".
What is the expected correct behavior?
Displaying "138 MB of 0.96 GB" or "0.138 GB of 0.96 GB"
Technical informations
Relevant screenshots
Solutions
Possible fixes
The code around here: https://github.com/LineageOS/android_packages_apps_Updater/blob/5a9c7479e7d52bb707b5e4ab2969d84df0a926f4/src/org/lineageos/updater/UpdatesListAdapter.java#L152 Always formats the first (current) size as MB, but uses formatShortFileSize for the total size, so there might be a mismatch in units.
Edited by Michael Ritzert