Skip to content

Commit

Permalink
feat: removed progress bar from drawer when the quota is unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Dec 18, 2024
1 parent d7f96a2 commit 1503d9d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1503d9d

Please sign in to comment.