Skip to content

Commit

Permalink
Merge pull request #65 from ZTFtrue/develope
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
ZTFtrue authored Sep 15, 2024
2 parents c4a2441 + 61a1133 commit 6cd06e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
applicationId = "com.ztftrue.music"
minSdk = 30
targetSdk = 34
versionCode = 30
versionName = "0.1.30"
versionCode = 31
versionName = "0.1.31"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -110,8 +110,8 @@ dependencies {

implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.material3:material3:1.3.0")
implementation("androidx.compose.material3:material3-window-size-class:1.3.0")
implementation("androidx.compose.material3:material3:1.2.1")
implementation("androidx.compose.material3:material3-window-size-class:1.2.1")

// splash
implementation("androidx.core:core-splashscreen:1.0.1")
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/com/ztftrue/music/ui/home/MainView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ fun MainView(
val tabList = remember {
mutableStateListOf<MainTab>()
}
var pagerState: PagerState = rememberPagerState { 0 }
LaunchedEffect(key1 = musicViewModel.mainTabList, key2 = musicViewModel.mainTabList.size) {
tabList.clear()
tabList.addAll(musicViewModel.mainTabList)
}
pagerState = rememberPagerState(initialPage = 0, pageCount = { tabList.size })
val pagerState: PagerState = rememberPagerState(initialPage = 0, pageCount = { tabList.size })
LaunchedEffect(tabList,tabList.size) {
if (pagerState.currentPage >= tabList.size) {
scope.launch {
Expand Down

0 comments on commit 6cd06e1

Please sign in to comment.