Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a324622a authored by Chetan Gurjar's avatar Chetan Gurjar Committed by Luca Stefani
Browse files

Correction in logic of roundend size calculation of SD card

API FileUtils.roundStorageSize() rounded up the Storage size incorrectly
and caused the storage total size to be displayed twice the actual capacity
in storage Settings application.
Modifications done to appropriately roundup the storage size in the
multiple of power of 2 by making the loop iterations to be controlled by
1024 instead of 1000.

Test: Verified with the particular SD card with which bug reported.
Change-Id: I8f92248a457d6ac507d092df46e1cb0daaa55134
(cherry picked from commit 82414728)
parent e266d0b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment