diff --git a/app/src/main/java/com/kabouzeid/gramophone/loader/LastAddedLoader.java b/app/src/main/java/com/kabouzeid/gramophone/loader/LastAddedLoader.java index 2c3d4f9f0..a72c8a1e7 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/loader/LastAddedLoader.java +++ b/app/src/main/java/com/kabouzeid/gramophone/loader/LastAddedLoader.java @@ -3,19 +3,26 @@ import android.content.Context; import android.database.Cursor; import android.provider.MediaStore; + import androidx.annotation.NonNull; import com.kabouzeid.gramophone.model.Song; import com.kabouzeid.gramophone.util.PreferenceUtil; -import java.util.ArrayList; import java.util.List; public class LastAddedLoader { @NonNull public static List getLastAddedSongs(@NonNull Context context) { - return SongLoader.getSongs(makeLastAddedCursor(context)); + List songs = SongLoader.getSongs(makeLastAddedCursor(context)); + + if (PreferenceUtil.getInstance(context).isLastAddedItemShowLimitEnable()) { + int limit = PreferenceUtil.getInstance(context).getLastAddedItemShowLimit(); + return songs.subList(0, Math.min(songs.size(), limit)); + } else { + return songs; + } } public static Cursor makeLastAddedCursor(@NonNull final Context context) { diff --git a/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreference.java b/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreference.java new file mode 100644 index 000000000..deca63be4 --- /dev/null +++ b/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreference.java @@ -0,0 +1,26 @@ +package com.kabouzeid.gramophone.preferences; + +import android.content.Context; +import android.util.AttributeSet; + +import com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEDialogPreference; + +public class LastAddedLimitPreference extends ATEDialogPreference { + + public LastAddedLimitPreference(Context context) { + super(context); + } + + public LastAddedLimitPreference(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public LastAddedLimitPreference(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + public LastAddedLimitPreference(Context context, AttributeSet attrs, int defStyleAttr, + int defStyleRes) { + super(context, attrs, defStyleAttr, defStyleRes); + } +} diff --git a/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreferenceDialog.java b/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreferenceDialog.java new file mode 100644 index 000000000..3c8d8a8b7 --- /dev/null +++ b/app/src/main/java/com/kabouzeid/gramophone/preferences/LastAddedLimitPreferenceDialog.java @@ -0,0 +1,70 @@ +package com.kabouzeid.gramophone.preferences; + +import android.app.Dialog; +import android.os.Bundle; +import android.view.View; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.fragment.app.DialogFragment; + +import com.afollestad.materialdialogs.MaterialDialog; +import com.google.android.material.switchmaterial.SwitchMaterial; +import com.google.android.material.textfield.TextInputEditText; +import com.kabouzeid.gramophone.R; +import com.kabouzeid.gramophone.util.PreferenceUtil; + +public class LastAddedLimitPreferenceDialog extends DialogFragment { + + public static LastAddedLimitPreferenceDialog newInstance() { + return new LastAddedLimitPreferenceDialog(); + } + + @NonNull + @Override + public Dialog onCreateDialog(Bundle savedInstanceState) { + View view = requireActivity().getLayoutInflater() + .inflate(R.layout.preference_dailog_last_added_limit ,null); + + PreferenceUtil preferenceUtil = PreferenceUtil.getInstance(requireContext()); + + SwitchMaterial enableLimit = view.findViewById(R.id.last_added_limit_switch); + TextInputEditText limitText = view.findViewById(R.id.last_added_limit_text); + + enableLimit.setChecked(preferenceUtil.isLastAddedItemShowLimitEnable()); + limitText.setEnabled(enableLimit.isChecked()); + + enableLimit.setOnCheckedChangeListener((compoundButton, b) -> limitText.setEnabled(b)); + + limitText.setText(String.valueOf(preferenceUtil.getLastAddedItemShowLimit())); + + return new MaterialDialog.Builder(requireContext()) + .title(getResources().getString(R.string.last_added_items_show_limit)) + .autoDismiss(false) + .customView(view, false) + .positiveText(android.R.string.ok) + .negativeText(android.R.string.cancel) + .onPositive((dialog, which) -> { + if (enableLimit.isChecked() && limitText.getText().toString().equals("")) { + Toast.makeText(requireContext(), R.string.invalid_last_added_limit, + Toast.LENGTH_SHORT).show(); + } else { + PreferenceUtil.getInstance(requireContext()).setLastAddedItemShowLimitEnable + (enableLimit.isChecked()); + PreferenceUtil.getInstance(requireContext()).setLastAddedItemShowLimit( + toIntOrDefault(limitText.getText().toString(), 100)); + dismiss(); + } + }) + .onNegative((dialog, which) -> dismiss()) + .build(); + } + + public int toIntOrDefault(String s, int d) { + try { + return Integer.parseInt(s); + } catch (NumberFormatException e) { + return d; + } + } +} diff --git a/app/src/main/java/com/kabouzeid/gramophone/ui/activities/SettingsActivity.java b/app/src/main/java/com/kabouzeid/gramophone/ui/activities/SettingsActivity.java index bba947bb8..97b25ebdb 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/ui/activities/SettingsActivity.java +++ b/app/src/main/java/com/kabouzeid/gramophone/ui/activities/SettingsActivity.java @@ -31,6 +31,8 @@ import com.kabouzeid.gramophone.misc.NonProAllowedColors; import com.kabouzeid.gramophone.preferences.BlacklistPreference; import com.kabouzeid.gramophone.preferences.BlacklistPreferenceDialog; +import com.kabouzeid.gramophone.preferences.LastAddedLimitPreference; +import com.kabouzeid.gramophone.preferences.LastAddedLimitPreferenceDialog; import com.kabouzeid.gramophone.preferences.LibraryPreference; import com.kabouzeid.gramophone.preferences.LibraryPreferenceDialog; import com.kabouzeid.gramophone.preferences.NowPlayingScreenPreference; @@ -170,6 +172,8 @@ public DialogFragment onCreatePreferenceDialog(Preference preference) { return BlacklistPreferenceDialog.newInstance(); } else if (preference instanceof LibraryPreference) { return LibraryPreferenceDialog.newInstance(); + } else if (preference instanceof LastAddedLimitPreference) { + return LastAddedLimitPreferenceDialog.newInstance(); } return super.onCreatePreferenceDialog(preference); } diff --git a/app/src/main/java/com/kabouzeid/gramophone/util/PreferenceUtil.java b/app/src/main/java/com/kabouzeid/gramophone/util/PreferenceUtil.java index 66e4234f4..9a862a5f7 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/util/PreferenceUtil.java +++ b/app/src/main/java/com/kabouzeid/gramophone/util/PreferenceUtil.java @@ -87,6 +87,9 @@ public final class PreferenceUtil { public static final String LIBRARY_CATEGORIES = "library_categories"; + public static final String LAST_ADDED_ITEMS_LIMIT = "last_added_show_limit"; + public static final String LAST_ADDED_ITEMS_LIMIT_ENABLE = "last_added_show_limit_enable"; + private static final String REMEMBER_SHUFFLE = "remember_shuffle"; private static PreferenceUtil sInstance; @@ -535,4 +538,20 @@ public List getDefaultLibraryCategoryInfos() { defaultCategoryInfos.add(new CategoryInfo(CategoryInfo.Category.PLAYLISTS, true)); return defaultCategoryInfos; } + + public boolean isLastAddedItemShowLimitEnable() { + return mPreferences.getBoolean(LAST_ADDED_ITEMS_LIMIT_ENABLE, false); + } + + public void setLastAddedItemShowLimitEnable(boolean enable) { + mPreferences.edit().putBoolean(LAST_ADDED_ITEMS_LIMIT_ENABLE, enable).apply(); + } + + public int getLastAddedItemShowLimit() { + return mPreferences.getInt(LAST_ADDED_ITEMS_LIMIT, 100); + } + + public void setLastAddedItemShowLimit(int limit) { + mPreferences.edit().putInt(LAST_ADDED_ITEMS_LIMIT, limit).apply(); + } } diff --git a/app/src/main/res/layout/preference_dailog_last_added_limit.xml b/app/src/main/res/layout/preference_dailog_last_added_limit.xml new file mode 100644 index 000000000..d5c65ee06 --- /dev/null +++ b/app/src/main/res/layout/preference_dailog_last_added_limit.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index b28d6b968..f80845fe8 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -302,4 +302,8 @@ إكمال آخر أغنية تعيين كنغمة الرنين السماح لـphonograph بتعديل إعدادات الصوت + الحد لعرض العناصر المضافة الأخيرة + ممكن + واضاف التشغيل آخر تظهر الأغاني تقتصر فقط + الرجاء إدخال رقم diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 667d3028b..8b154ffa2 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -230,4 +230,8 @@ Най - често слушани Последно_добавени Плейлистът е празен + Ограничение за показване на последно добавени елементи + активиране + Последно добавени плейлист ще показва само ограничени песни + Моля въведете номер diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index fd9fc292c..d2f35c796 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -302,4 +302,8 @@ Dokončit poslední skladbu Nastavit vyzváněcí tón Povolit aplikaci Phonograph měnit nastavení zvuku + Limit pro zobrazení naposledy přidaných položek + umožnit + Poslední přidané playlist se zobrazí pouze omezené písně + Zadejte číslo diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index eb8dea3c0..4924ba48d 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -302,4 +302,8 @@ Letzten Song beenden Klingelton einstellen Phonograph erlauben, die Audioeinstellungen zu verändern + Limit für die Anzeige der zuletzt hinzugefügten Elemente + aktivieren + Zuletzt hinzugekommen Playlist zeigt nur begrenzt Songs + Bitte gebe eine Nummer ein diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index ac9d6c956..e60debe5c 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -250,4 +250,8 @@ Κορυφαία Κομμάτια @string/last_added Η Λίστα αναπαραγωγής είναι κενή + Όριο για την εμφάνιση των στοιχείων που προστέθηκαν τελευταία + επιτρέπω + Πρόσφατες playlist θα δείξει μόνο περιορισμένη τραγούδια + Παρακαλώ εισάγετε έναν αριθμό diff --git a/app/src/main/res/values-en-rCA/strings.xml b/app/src/main/res/values-en-rCA/strings.xml index 5d3e6ac53..8412ce52e 100644 --- a/app/src/main/res/values-en-rCA/strings.xml +++ b/app/src/main/res/values-en-rCA/strings.xml @@ -273,4 +273,8 @@ The content of blacklisted folders is hidden from your library Reset artist image Set artist image + Limit for showing last added items + Enable + Last Added playlist will show only limited songs + Please enter a number diff --git a/app/src/main/res/values-en-rGB/strings.xml b/app/src/main/res/values-en-rGB/strings.xml index 75baf1034..547a911dd 100644 --- a/app/src/main/res/values-en-rGB/strings.xml +++ b/app/src/main/res/values-en-rGB/strings.xml @@ -302,4 +302,8 @@ Finish last song Set ringtone Allow phonograph to modify audio settings + Limit for showing last added items + Enable + Last Added playlist will show only limited songs + Please enter a number diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 2459aedd6..be3ff3218 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -301,4 +301,8 @@ El contenido de las carpetas de la lista negra está oculto en tu biblioteca"Álbum Año Terminar la última canción + Límite para mostrar los últimos elementos agregados + permitir + Última Agregado lista de reproducción mostrará canciones limitados + Por favor, introduzca un número diff --git a/app/src/main/res/values-es-rUS/strings.xml b/app/src/main/res/values-es-rUS/strings.xml index ca504057d..8d11867d6 100644 --- a/app/src/main/res/values-es-rUS/strings.xml +++ b/app/src/main/res/values-es-rUS/strings.xml @@ -294,4 +294,8 @@ Artista Álbum Año + Límite para mostrar los últimos elementos agregados + permitir + Última Agregado lista de reproducción mostrará canciones limitados + Por favor, introduzca un número diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 42a2b4f31..09eceba73 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -300,4 +300,8 @@ Albumi Vuosi Lopeta viimeinen kappale + Rajoitus viimeksi lisättyjen tuotteiden näyttämiselle + activer + Viimeksi lisätyt soittolista näkyy vain vähän kappaleita + Anna numero diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 464424858..b293ff892 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -302,4 +302,8 @@ Terminer le dernier titre Définir la sonnerie Autoriser Phonograph à modifier les paramètres audio + Limite d\'affichage des derniers éléments ajoutés + activer + playlist Dernières ajoutées affichera des chansons seulement limitées + S\'il vous plaît entrer un numéro diff --git a/app/src/main/res/values-he/strings.xml b/app/src/main/res/values-he/strings.xml index 890dac62c..91137c74d 100644 --- a/app/src/main/res/values-he/strings.xml +++ b/app/src/main/res/values-he/strings.xml @@ -300,4 +300,8 @@ אלבום שנה סיים את השיר האחרון + מגבלה להצגת פריטים שנוספו לאחרונה + לְאַפשֵׁר + רשימת השמעה הוסף לאחרונה נראתה רק שירים מוגבלים + בבקשה הכנס מספר diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 5fed22735..d06959875 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -300,4 +300,8 @@ Album Godina Završi zadnju pjesmu + Ograničenje za prikaz posljednjih dodanih stavki + omogućiti + Zadnje dodano popis će se prikazati samo ograničene pjesme + Unesite broj diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 05afe9d98..e16c2dc4a 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -295,4 +295,8 @@ Előadó Album Év + Korlát a legutóbb hozzáadott elemek megjelenítésére + engedélyezze + Utoljára feltöltött lejátszási lista megmutatja csak korlátozott dalok + Kérjük, adjon meg egy számot diff --git a/app/src/main/res/values-id/strings.xml b/app/src/main/res/values-id/strings.xml index b996f30e6..ae3de20e5 100644 --- a/app/src/main/res/values-id/strings.xml +++ b/app/src/main/res/values-id/strings.xml @@ -302,4 +302,8 @@ Selesaikan lagu terakhir Setel sebagai nada dering Izinkan phonograph mengubah pengaturan audio + Batas untuk menampilkan item terakhir ditambahkan + memungkinkan + Terakhir Ditambahkan playlist akan menunjukkan lagu hanya terbatas + Masukkan nomor diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index b996f30e6..ae3de20e5 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -302,4 +302,8 @@ Selesaikan lagu terakhir Setel sebagai nada dering Izinkan phonograph mengubah pengaturan audio + Batas untuk menampilkan item terakhir ditambahkan + memungkinkan + Terakhir Ditambahkan playlist akan menunjukkan lagu hanya terbatas + Masukkan nomor diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index c5dff62bf..d12866eea 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -303,4 +303,8 @@ Termina l\'ultimo brano Imposta suoneria Consenti a Phonograph di modificare le impostazioni audio + Limite per la visualizzazione degli ultimi elementi aggiunti + abilitare + Ultime aggiunte playlist mostrerà canzoni limitate + Per favore inserisci un numero diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index 890dac62c..91137c74d 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -300,4 +300,8 @@ אלבום שנה סיים את השיר האחרון + מגבלה להצגת פריטים שנוספו לאחרונה + לְאַפשֵׁר + רשימת השמעה הוסף לאחרונה נראתה רק שירים מוגבלים + בבקשה הכנס מספר diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 7dd72d9a9..f397d29da 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -302,4 +302,8 @@ 最後の曲を終える 着信音の設定 Phonographによるオーディオ設定の変更を許可する + 最後に追加されたアイテムを表示するための制限 + 有効にする + 最後に追加されたプレイリストは、限られた曲が表示されます + 番号を入力してください。 diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index c4e5e8890..ebf016c99 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -297,4 +297,8 @@ 아티스트 앨범 연도 + 마지막으로 추가 된 항목 표시 제한 + 활성화 + 마지막으로 추가 된 재생 목록에만 제한 노래를 표시합니다 + 숫자를 입력하세요 diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index cf741e3d7..89b64b9ab 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -295,4 +295,8 @@ Artiest Album Jaar + Limiet voor het tonen van laatst toegevoegde items + inschakelen + Laatst toegevoegd afspeellijst wordt slechts in beperkte mate voorkomt blijkt + Voer alstublieft een nummer in diff --git a/app/src/main/res/values-nn/strings.xml b/app/src/main/res/values-nn/strings.xml index 639a2c6f8..440be1ad6 100644 --- a/app/src/main/res/values-nn/strings.xml +++ b/app/src/main/res/values-nn/strings.xml @@ -79,4 +79,8 @@ Song Søk i biblioteket... Ny speleliste + Grense for visning av sist tilføyde elementer + muliggjøre + Sist lagt til spilleliste viser bare begrensede sanger + Vennligst skriv inn et nummer diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index f39fac1cb..bb9abb6f1 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -295,4 +295,8 @@ Artysta Album Rok + Limit wyświetlania ostatnio dodanych elementów + włączyć + Ostatnio dodane playlist pokaże tylko ograniczone piosenki + Proszę wpisać numer diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index a48038bef..f8d61ea95 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -302,4 +302,8 @@ Finalizar última música Definir toque Permitir que o Phonograph modifique as configurações de áudio + Limite para mostrar itens de última adicionadas + habilitar + Últimas Adicionadas lista irá mostrar canções limitado apenas + Por favor, coloque um numero diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index af6b290cf..bfdb2af8f 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -215,4 +215,8 @@ Ocorreu um erro inesperado. Por favor contacte o desenvolvedor da aplicação. A sua informação da conta é apenas usada para a autenticação. Vai ser reencaminhado para o site do rastreador de problemas. + Limite para mostrar itens de última adicionadas + habilitar + Últimas Adicionadas lista irá mostrar canções limitado apenas + Por favor, coloque um numero diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index fbc8a94d3..7fa480b5f 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -295,4 +295,8 @@ Artist Album An + Limită pentru afișarea ultimelor elemente adăugate + permite + Ultimele adaugate lista de redare va afișa doar melodiile limitate + Vă rugăm să introduceți un număr diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index d7a90bf3a..4199c3a9e 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -302,4 +302,8 @@ Последняя песня завершилась Установить рингтон Разрешить приложению изменять настройки аудио + Лимит для показа последних добавленных элементов + включить + плейлист Последние добавленные будут показывать только ограниченные песни + Пожалуйста, введите номер diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 13ff0de1d..a4b7f3901 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -87,4 +87,8 @@ Vill du radera %1$d låtar? I vilken vy navigeringslisten skall vara färgad Sök i ditt bibliotek ... Ny spellista + Gräns för visning av senast tillagda objekt + Gör det möjligt + Senast inlagd spellista kommer att visa endast begränsade låtar + ange ett nummer diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index f722ede59..f8cabf168 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -302,4 +302,8 @@ Son şarkıyı bitir Zil sesi olarak ayarla Phonograph\'ın ses ayarlarını değiştirmesine izin ver + Son eklenen öğeleri gösterme sınırı + etkinleştirme + Son Eklenen çalma listesi sadece sınırlı şarkıyı gösterir + Lütfen bir numara giriniz diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 2e2eee365..1a3656262 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -282,4 +282,8 @@ Виконавець Альбом Рік + Обмеження для показу останніх доданих елементів + увімкнути + плейлист Останні додані будуть показувати тільки обмежені пісні + Будь ласка, введіть номер diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index 32fce30c4..32b02baf6 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -302,4 +302,8 @@ Phát hết bài cuối Cài nhạc chuông Cho phép Phonograph thay đổi cài đặt âm thanh + Giới hạn hiển thị các mục được thêm vào lần cuối + kích hoạt + Đã thêm lần cuối danh sách sẽ hiển thị bài hát chỉ giới hạn + Vui lòng nhập một số diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index ad45b71db..ceb56b697 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -302,4 +302,8 @@ 播完最后一首 设置为铃声 允许 Phonograph 调整音频设定 + 使能夠 + 顯示最後添加的項的限制 + 最后追加的播放列表会显示只有有限的歌曲 + 请输入号码 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index d8bbcc3ac..21eecd32f 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -303,4 +303,8 @@ 歌曲全數播放完畢 設定鈴聲 允許 Phonograph 修改音訊設定 + 使能够 + 显示最后添加的项的限制 + 最后追加的播放列表会显示只有有限的歌曲 + 请输入号码 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bded8aa70..fe0220a89 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -310,4 +310,8 @@ Finish last song Set ringtone Allow phonograph to modify audio settings + Limit for showing last added items + Last Added playlist will show only limited songs + Enable + Please enter a number diff --git a/app/src/main/res/xml/pref_playlists.xml b/app/src/main/res/xml/pref_playlists.xml index 83f4c68e0..4e8d7569b 100644 --- a/app/src/main/res/xml/pref_playlists.xml +++ b/app/src/main/res/xml/pref_playlists.xml @@ -13,6 +13,11 @@ android:positiveButtonText="@null" android:title="@string/pref_title_last_added_interval" /> + +