Skip to content

Commit

Permalink
🔨 Fixed DI
Browse files Browse the repository at this point in the history
  • Loading branch information
shub39 committed Sep 16, 2024
1 parent 2c45928 commit dda7039
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Binary file modified app/release/app-release.apk
Binary file not shown.
Binary file modified app/release/baselineProfiles/0/app-release.dm
Binary file not shown.
Binary file modified app/release/baselineProfiles/1/app-release.dm
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/java/com/shub39/rush/component/ErrorCard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.shub39.rush.viewmodel.RushViewModel
import org.koin.androidx.compose.koinViewModel

@Composable
fun Error(
fun ErrorCard(
rushViewModel: RushViewModel = koinViewModel()
) {
Card(
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/java/com/shub39/rush/page/LyricsPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import androidx.compose.ui.unit.dp
import com.shub39.rush.R
import com.shub39.rush.component.ArtFromUrl
import com.shub39.rush.component.EmptyCard
import com.shub39.rush.component.Error
import com.shub39.rush.component.ErrorCard
import com.shub39.rush.component.LoadingCard
import com.shub39.rush.database.SettingsDataStore
import com.shub39.rush.listener.NotificationListener
Expand Down Expand Up @@ -91,7 +91,10 @@ fun LyricsPage(
val autoChange by rushViewModel.autoChange.collectAsState()

if (isShareSheetOpen) {
SharePage(onDismiss = { isShareSheetOpen = false })
SharePage(
onDismiss = { isShareSheetOpen = false },
rushViewModel = rushViewModel
)
}

if (fetching) {
Expand All @@ -100,7 +103,7 @@ fun LyricsPage(

} else if (error) {

Error()
ErrorCard(rushViewModel)

} else if (song == null) {

Expand Down

0 comments on commit dda7039

Please sign in to comment.