mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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:
parent
145c42f1c8
commit
e1a29e3275
1 changed files with 1 additions and 1 deletions
|
@ -101,10 +101,10 @@ class DownloadFragment : Fragment() {
|
||||||
}
|
}
|
||||||
observe(downloadsViewModel.usedBytes) {
|
observe(downloadsViewModel.usedBytes) {
|
||||||
updateStorageInfo(view.context, it, R.string.used_storage, binding?.downloadUsedTxt, binding?.downloadUsed)
|
updateStorageInfo(view.context, it, R.string.used_storage, binding?.downloadUsedTxt, binding?.downloadUsed)
|
||||||
binding?.downloadStorageAppbar?.isVisible = it > 0
|
|
||||||
}
|
}
|
||||||
observe(downloadsViewModel.downloadBytes) {
|
observe(downloadsViewModel.downloadBytes) {
|
||||||
updateStorageInfo(view.context, it, R.string.app_storage, binding?.downloadAppTxt, binding?.downloadApp)
|
updateStorageInfo(view.context, it, R.string.app_storage, binding?.downloadAppTxt, binding?.downloadApp)
|
||||||
|
binding?.downloadStorageAppbar?.isVisible = it > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
val adapter = DownloadAdapter(
|
val adapter = DownloadAdapter(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue