From 94e094a430a91921165bcfb559bab9467c9e0b69 Mon Sep 17 00:00:00 2001 From: samartnik Date: Sun, 24 May 2020 09:09:30 -0400 Subject: [PATCH] Changed label for data saved amount --- .../chrome/browser/ntp/BraveNewTabPageView.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageView.java b/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageView.java index 5144b9a6209d..2395103f07e0 100644 --- a/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageView.java +++ b/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageView.java @@ -216,23 +216,23 @@ private String getBraveStatsStringFormNumber(long number, boolean isBytes) { result = result + (number / (base * base * base)); number = number % (base * base * base); result = result + "." + (number / (10L * base * base)); - suffix = isBytes ? "Gb" : "B"; + suffix = isBytes ? "GB" : "B"; } else if (number >= (10L * base * base) && number < (base * base * base)) { result = result + (number / (base * base)); - suffix = isBytes ? "Mb" : "M"; + suffix = isBytes ? "MB" : "M"; } else if (number >= (base * base) && number < (10L * base * base)) { result = result + (number / (base * base)); number = number % (base * base); result = result + "." + (number / (100L * base)); - suffix = isBytes ? "Mb" : "M"; + suffix = isBytes ? "MB" : "M"; } else if (number >= (10L * base) && number < (base * base)) { result = result + (number / base); - suffix = isBytes ? "Kb" : "K"; + suffix = isBytes ? "KB" : "K"; } else if (number >= base && number < (10L * base)) { result = result + (number / base); number = number % base; result = result + "." + (number / 100L); - suffix = isBytes ? "Kb" : "K"; + suffix = isBytes ? "KB" : "K"; } else { result = result + number; }