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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user