diff --git a/app/src/main/java/pl/lambada/songsync/ui/screens/BrowseScreen.kt b/app/src/main/java/pl/lambada/songsync/ui/screens/BrowseScreen.kt index bd0b7dc..6970ab8 100644 --- a/app/src/main/java/pl/lambada/songsync/ui/screens/BrowseScreen.kt +++ b/app/src/main/java/pl/lambada/songsync/ui/screens/BrowseScreen.kt @@ -396,6 +396,14 @@ fun BrowseScreen(viewModel: MainViewModel) { ) } + is FileNotFoundException -> { // Rate limit + Column { + Text(text = stringResource(R.string.spotify_api_rate_limit_reached)) + Text(text = stringResource(R.string.please_try_again_later)) + Text(text = stringResource(R.string.change_api_strategy)) + } + } + else -> { Text(text = failReason.toString()) } diff --git a/app/src/main/java/pl/lambada/songsync/ui/screens/HomeScreen.kt b/app/src/main/java/pl/lambada/songsync/ui/screens/HomeScreen.kt index f6377ab..352044c 100644 --- a/app/src/main/java/pl/lambada/songsync/ui/screens/HomeScreen.kt +++ b/app/src/main/java/pl/lambada/songsync/ui/screens/HomeScreen.kt @@ -829,6 +829,7 @@ fun BatchDownloadLyrics(songs: List, viewModel: MainViewModel, onDone: () Column { Text(text = stringResource(R.string.spotify_api_rate_limit_reached)) Text(text = stringResource(R.string.please_try_again_later)) + Text(text = stringResource(R.string.change_api_strategy)) } }, onDismissRequest = { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a3e3f1e..208e252 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -103,4 +103,5 @@ Default API credentials Web Player API Custom API credentials + You can also try alternative ways to connect to Spotify network in settings. \ No newline at end of file