Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a85659e authored by Chris Antol's avatar Chris Antol
Browse files

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
parent b3046b92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)