From 053a86dc4e829dda7b4ad43f6ae89fa50eaf22e6 Mon Sep 17 00:00:00 2001 From: joragua Date: Wed, 18 Dec 2024 16:10:08 +0100 Subject: [PATCH] feat: removed progress bar in drawer when the quota is unlimited --- .../java/com/owncloud/android/ui/activity/DrawerActivity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.kt index 726c40f54c0..a6887bdecd8 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.kt @@ -336,11 +336,7 @@ abstract class DrawerActivity : ToolbarActivity() { } userQuota.available < 0 -> { // Pending, unknown or unlimited free storage - getAccountQuotaBar()?.apply { - isVisible = true - progress = 0 - progressTintList = ColorStateList.valueOf(resources.getColor(R.color.color_accent)) - } + getAccountQuotaBar()?.visibility = View.INVISIBLE getAccountQuotaText()?.text = String.format( getString(R.string.drawer_unavailable_free_storage), DisplayUtils.bytesToHumanReadable(userQuota.used, this, true)