Skip to content

Commit

Permalink
feat: hack to show storage information not available message in drawe…
Browse files Browse the repository at this point in the history
…r and manage accounts dialog
  • Loading branch information
JuancaG05 committed Nov 27, 2024
1 parent 6584a7b commit 7b151b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class ManageAccountsAdapter(
DisplayUtils.bytesToHumanReadable(userQuota.getTotal(), context, false)
)
} else { // oC10
quotaText.text = context.getString(R.string.drawer_exceeded_quota)
quotaText.text = context.getString(R.string.drawer_unavailable_used_storage)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ abstract class DrawerActivity : ToolbarActivity() {

userQuota.available == 0L -> { // Exceeded storage. The value is over 100%.
getAccountQuotaBar()?.apply {
isVisible = true
isVisible = false
progress = 100
progressTintList = ColorStateList.valueOf(resources.getColor(R.color.quota_exceeded))
}
Expand All @@ -346,7 +346,7 @@ abstract class DrawerActivity : ToolbarActivity() {
text = getString(R.string.drawer_exceeded_quota)
}
} else { // oC10
getAccountQuotaText()?.text = getString(R.string.drawer_exceeded_quota)
getAccountQuotaText()?.text = getString(R.string.drawer_unavailable_used_storage)
getAccountQuotaStatusText()?.visibility = View.GONE
}
}
Expand Down
3 changes: 2 additions & 1 deletion owncloudApp/src/main/res/layout/account_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
android:layout_width="125dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/item_file_grid_margin"
android:layout_marginTop="@dimen/standard_quarter_margin" />
android:layout_marginTop="@dimen/standard_quarter_margin"
android:visibility="gone" />

<TextView
android:id="@+id/manage_accounts_quota_text"
Expand Down

0 comments on commit 7b151b2

Please sign in to comment.