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

Commit c3b6fbbc authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Merge remote-tracking branch 'origin/lineage-16.0' into v1-pie

parents 9625a386 82414728
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1040,11 +1040,13 @@ public class FileUtils {
    public static long roundStorageSize(long size) {
        long val = 1;
        long pow = 1;
        while ((val * pow) < size) {
        long pow1024 = 1;
        while ((val * pow1024) < size) {
            val <<= 1;
            if (val > 512) {
                val = 1;
                pow *= 1000;
                pow1024 *= 1024;
            }
        }
        return val * pow;