diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt index 92ffa1c1..b949772d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt @@ -70,6 +70,10 @@ class StorageFragment(context: Context, attributeSet: AttributeSet) : MyViewPage val freeSpace = storageStatsManager.getFreeBytes(uuid) activity.runOnUiThread { + storage_usage_progressbar.max = (totalSpace / 1000).toInt() + storage_usage_progressbar.progress = ((totalSpace - freeSpace) / 1000).toInt() + storage_usage_progressbar.beVisible() + free_space_value.text = freeSpace.formatSizeThousand() total_space.text = String.format(context.getString(R.string.total_storage), totalSpace.formatSizeThousand()) free_space_label.beVisible() diff --git a/app/src/main/res/layout/storage_fragment.xml b/app/src/main/res/layout/storage_fragment.xml index 60e814a8..91474701 100644 --- a/app/src/main/res/layout/storage_fragment.xml +++ b/app/src/main/res/layout/storage_fragment.xml @@ -26,11 +26,21 @@ android:textSize="@dimen/big_text_size" android:visibility="gone" /> + +