Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Use LinearProgressIndicator for library loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jobobby04 committed Aug 18, 2022
1 parent 54296bf commit 024f16a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.foundation.lazy.grid.rememberLazyGridState
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.LinearProgressIndicator
import androidx.compose.material.MaterialTheme
import androidx.compose.material.ScrollableTabRow
import androidx.compose.material.Tab
Expand Down Expand Up @@ -380,9 +380,7 @@ fun LibraryContent(
) {
if (!isEmpty) {
if (items == null) {
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
CircularProgressIndicator(Modifier.size(64.dp))
}
LinearProgressIndicator(Modifier.fillMaxWidth())
} else {
LibraryPager(
library = items,
Expand Down

0 comments on commit 024f16a

Please sign in to comment.