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

Commit 0456f802 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Merge branch '447-master-0_data_widget' into 'v1-oreo'

eDrive: allow total or used data to be 0

See merge request !139
parents 896ee5b9 659f2a58
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {
+2 −2
Original line number Diff line number Diff line
@@ -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) {