diff --git a/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java b/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java index 85e858d921c44936b00462654a1600ab99b8a9d3..dc911d456fb1c68a90a7cc510d125b4242ea2953 100644 --- a/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java +++ b/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java @@ -93,7 +93,7 @@ public class AccountsActivity extends AppCompatActivity { String usedShownQuota = "?"; try { final long totalQuotaLong = Long.parseLong(totalQuota); - if (totalQuotaLong > 0) { + if (totalQuotaLong >= 0) { totalShownQuota = CommonUtils.humanReadableByteCountBin(totalQuotaLong); } } catch (NumberFormatException ignored) { @@ -102,7 +102,7 @@ public class AccountsActivity extends AppCompatActivity { try { final long usedQuotaLong = Long.parseLong(usedQuota); - if (usedQuotaLong > 0) { + if (usedQuotaLong >= 0) { usedShownQuota = CommonUtils.humanReadableByteCountBin(usedQuotaLong); } } catch (NumberFormatException ignore) { diff --git a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java index 56beb8f2204b13ced15867fa669ebe0334f6da31..0041f9ab2a537a0b668b6dd7ca179659e6cd872e 100644 --- a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java +++ b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java @@ -220,7 +220,7 @@ public class EDriveWidget extends AppWidgetProvider { String usedShownQuota = "?"; try { final long totalQuotaLong = Long.parseLong(totalQuota); - if (totalQuotaLong > 0) { + if (totalQuotaLong >= 0) { totalShownQuota = CommonUtils.humanReadableByteCountBin(totalQuotaLong); } } catch (NumberFormatException ignored) { @@ -229,7 +229,7 @@ public class EDriveWidget extends AppWidgetProvider { try { final long usedQuotaLong = Long.parseLong(usedQuota); - if (usedQuotaLong > 0) { + if (usedQuotaLong >= 0) { usedShownQuota = CommonUtils.humanReadableByteCountBin(usedQuotaLong); } } catch (NumberFormatException ignore) {