Fix download bar not showing

This commit is contained in:
Blatzar 2022-08-12 03:56:44 +02:00
parent 796ae90b8c
commit 34131bdf62

View file

@ -112,6 +112,7 @@ class DownloadFragment : Fragment() {
getBytesAsText(it)
)
download_used?.setLayoutWidth(it)
download_storage_appbar?.isVisible = it > 0
}
observe(downloadsViewModel.downloadBytes) {
download_app_txt?.text =
@ -120,7 +121,6 @@ class DownloadFragment : Fragment() {
getBytesAsText(it)
)
download_app?.setLayoutWidth(it)
download_storage_appbar?.isVisible = it > 0
}
val adapter: RecyclerView.Adapter<RecyclerView.ViewHolder> =