mirror of
https://github.com/IllusionMan1212/lyrics-grabbr.git
synced 2026-10-24 02:12:27 +00:00
feat: setting to keep screen on
This commit is contained in:
@@ -96,7 +96,9 @@ class HomeViewModel(private val homeRepository: HomeRepository): ViewModel() {
|
||||
}
|
||||
|
||||
fun setSong(song: NotificationEvent) {
|
||||
_uiState.value = _uiState.value.copy(isLoading = true, notification = song, error = null)
|
||||
_uiState.update { state ->
|
||||
state.copy(isLoading = true, notification = song, error = null)
|
||||
}
|
||||
}
|
||||
|
||||
fun makeRequestToGenius(song: String, artist: String) {
|
||||
|
||||
Reference in New Issue
Block a user