🚀 Show loading indicator at start in Browse

This commit is contained in:
Acclorite 2025-01-17 14:14:06 +02:00
parent e49f010353
commit cf7e85c267
3 changed files with 12 additions and 3 deletions

View file

@ -37,8 +37,10 @@ fun BrowseGridLayout(
) { ) {
groupedFiles.forEach { group -> groupedFiles.forEach { group ->
stickyHeader { stickyHeader {
Box(Modifier.animateItem()) {
headerContent(group.header, group.pinned) headerContent(group.header, group.pinned)
} }
}
items( items(
group.files, group.files,

View file

@ -31,8 +31,10 @@ fun BrowseListLayout(
) { ) {
groupedFiles.forEach { group -> groupedFiles.forEach { group ->
stickyHeader { stickyHeader {
Box(Modifier.animateItem()) {
headerContent(group.header, group.pinned) headerContent(group.header, group.pinned)
} }
}
items( items(
group.files, group.files,

View file

@ -52,7 +52,12 @@ class BrowseModel @Inject constructor(
init { init {
viewModelScope.launch(Dispatchers.IO) { viewModelScope.launch(Dispatchers.IO) {
getFilesFromDownloads() onEvent(
BrowseEvent.OnRefreshList(
showIndicator = true,
hideSearch = true
)
)
} }
/* Observe channel - - - - - - - - - - - */ /* Observe channel - - - - - - - - - - - */