storages в UnlockManager

This commit is contained in:
Пытков Роман
2025-02-11 18:17:19 +03:00
parent 85b8517a76
commit 824306d8bc
2 changed files with 8 additions and 3 deletions

View File

@@ -67,8 +67,7 @@ fun StorageTree(
val numOfFiles by cur.numberOfFiles.collectAsStateWithLifecycle()
val size by cur.size.collectAsStateWithLifecycle()
val metaInfo by cur.metaInfo.collectAsStateWithLifecycle()
//val isAvailable by cur.isAvailable.collectAsStateWithLifecycle()
val isAvailable = metaInfo.name?.startsWith("1") != true
val isAvailable by cur.isAvailable.collectAsStateWithLifecycle()
val borderColor =
if (cur.isVirtualStorage) MaterialTheme.colorScheme.secondary else MaterialTheme.colorScheme.primary
Column(modifier) {