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

Commit 969228ad authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

eDrive: Use English locale to format data size

some locale changes decimal operator from "." to "," this
causing crash while parsing them as double so make it default to english
parent 5dd49983
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ public abstract class CommonUtils {
            ci.next();
        }
        value *= Long.signum(bytes);
        return String.format(Locale.getDefault(), "%.1f %cB", value / 1024.0, ci.current());
        return String.format(Locale.ENGLISH, "%.1f %cB", value / 1024.0, ci.current());
    }
    /**
     * Enqueue a unique periodic worker to look for file to be synchronized (remote files + local files