Added the number of duplicates to the toast text.

pull/9538/head
Jared Fantaye 2022-12-30 16:36:33 +01:00 zatwierdzone przez Stypox
rodzic 5fb7b3266b
commit b3554a6a49
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4BDF1B40A49FDD23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -181,7 +181,7 @@ public final class PlaylistAppendDialog extends PlaylistDialog {
String toastText = getString(R.string.playlist_add_stream_success);
if (numOfDuplicates > 0) {
toastText = getString(R.string.playlist_add_stream_success_duplicate);
toastText = getString(R.string.playlist_add_stream_success_duplicate, numOfDuplicates);
}
final Toast successToast = Toast.makeText(getContext(), toastText, Toast.LENGTH_SHORT);

Wyświetl plik

@ -446,7 +446,7 @@
<string name="delete_playlist_prompt">Delete this playlist\?</string>
<string name="playlist_creation_success">Playlist created</string>
<string name="playlist_add_stream_success">Playlisted</string>
<string name="playlist_add_stream_success_duplicate">Playlisted duplicate</string>
<string name="playlist_add_stream_success_duplicate">Duplicate added %d time(s)</string>
<string name="playlist_thumbnail_change_success">Playlist thumbnail changed.</string>
<string name="playlist_no_uploader">Auto-generated (no uploader found)</string>
<!-- Players -->