Storage Apps Lists SPA migration

Pending task to support Sorting by Name which is currently not possible given existing SPA infra

Bug: 284032857
Bug: 284032898
Test: Unit Test. Uncomment lines and tested Settings>Storage>Apps and Settings>Storage>Games
Change-Id: Id21e82314eb3b1e11b86de1e67916eae27798348
This commit is contained in:
Chris Antol
2023-07-21 23:14:22 +00:00
parent b3046b92d7
commit 1a85659e7b

View File

@@ -44,7 +44,7 @@ fun ApplicationInfo.getStorageSize(): State<String> {
}
}
private fun ApplicationInfo.calculateSizeBytes(context: Context): Long? {
fun ApplicationInfo.calculateSizeBytes(context: Context): Long? {
val storageStatsManager = context.storageStatsManager
return try {
val stats = storageStatsManager.queryStatsForPackage(storageUuid, packageName, userHandle)