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)
This commit is contained in:
Luna712 2024-07-05 12:31:43 -06:00 committed by GitHub
parent 145c42f1c8
commit e1a29e3275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(