From e1a29e3275c3f2b05214f3b0bde20a256112b999 Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:31:43 -0600 Subject: [PATCH] Move setting downloadStorageAppbar to downloadBytes I think this was always intended. If not it should just be removed completely. If you have the app itself installed you are using storage on your device (which is what usedBytes is), I think the intended purpose was used bytes within the app (which is what downloadBytes is) --- .../com/lagradost/cloudstream3/ui/download/DownloadFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt index 23d546e1..6acc9cc5 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt @@ -101,10 +101,10 @@ class DownloadFragment : Fragment() { } observe(downloadsViewModel.usedBytes) { updateStorageInfo(view.context, it, R.string.used_storage, binding?.downloadUsedTxt, binding?.downloadUsed) - binding?.downloadStorageAppbar?.isVisible = it > 0 } observe(downloadsViewModel.downloadBytes) { updateStorageInfo(view.context, it, R.string.app_storage, binding?.downloadAppTxt, binding?.downloadApp) + binding?.downloadStorageAppbar?.isVisible = it > 0 } val adapter = DownloadAdapter(