🚀 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,7 +37,9 @@ fun BrowseGridLayout(
|
||||||
) {
|
) {
|
||||||
groupedFiles.forEach { group ->
|
groupedFiles.forEach { group ->
|
||||||
stickyHeader {
|
stickyHeader {
|
||||||
headerContent(group.header, group.pinned)
|
Box(Modifier.animateItem()) {
|
||||||
|
headerContent(group.header, group.pinned)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
items(
|
items(
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ fun BrowseListLayout(
|
||||||
) {
|
) {
|
||||||
groupedFiles.forEach { group ->
|
groupedFiles.forEach { group ->
|
||||||
stickyHeader {
|
stickyHeader {
|
||||||
headerContent(group.header, group.pinned)
|
Box(Modifier.animateItem()) {
|
||||||
|
headerContent(group.header, group.pinned)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
items(
|
items(
|
||||||
|
|
|
||||||
|
|
@ -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 - - - - - - - - - - - */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue