🚀 Show loading indicator at start in Browse
This commit is contained in:
parent
e49f010353
commit
cf7e85c267
3 changed files with 12 additions and 3 deletions
|
|
@ -37,8 +37,10 @@ fun BrowseGridLayout(
|
|||
) {
|
||||
groupedFiles.forEach { group ->
|
||||
stickyHeader {
|
||||
Box(Modifier.animateItem()) {
|
||||
headerContent(group.header, group.pinned)
|
||||
}
|
||||
}
|
||||
|
||||
items(
|
||||
group.files,
|
||||
|
|
|
|||
|
|
@ -31,8 +31,10 @@ fun BrowseListLayout(
|
|||
) {
|
||||
groupedFiles.forEach { group ->
|
||||
stickyHeader {
|
||||
Box(Modifier.animateItem()) {
|
||||
headerContent(group.header, group.pinned)
|
||||
}
|
||||
}
|
||||
|
||||
items(
|
||||
group.files,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,12 @@ class BrowseModel @Inject constructor(
|
|||
|
||||
init {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
getFilesFromDownloads()
|
||||
onEvent(
|
||||
BrowseEvent.OnRefreshList(
|
||||
showIndicator = true,
|
||||
hideSearch = true
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
/* Observe channel - - - - - - - - - - - */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue