StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
fix(downloads): say when the temporary cache was cleared
Rickb7fe3a4d6601
diff --git a/feature/system/src/main/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModel.kt b/feature/system/src/main/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModel.ktindex de82317f..d3f82c6f 100644--- a/feature/system/src/main/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModel.kt+++ b/feature/system/src/main/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModel.kt@@ -159,7 +159,7 @@ class DownloadsViewModel @Inject constructor(.getOrElse { TorrentCacheClearResult.FAILED }val status = runCatching { torrentCacheManager.getStatus() }.getOrNull()val message = when (result) {- TorrentCacheClearResult.CLEARED -> null+ TorrentCacheClearResult.CLEARED -> application.getString(R.string.torrent_cache_cleared)TorrentCacheClearResult.PLAYBACK_ACTIVE -> application.getString(R.string.torrent_cache_active)TorrentCacheClearResult.FAILED -> application.getString(R.string.torrent_cache_clear_failed)}diff --git a/feature/system/src/main/res/values-ar/strings.xml b/feature/system/src/main/res/values-ar/strings.xmlindex 1f89acac..9aa0fab8 100644--- a/feature/system/src/main/res/values-ar/strings.xml+++ b/feature/system/src/main/res/values-ar/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">إزالة بيانات التورنت المؤقتة؟ لن تُحذف التنزيلات المحفوظة.</string><string name="torrent_cache_active">أوقف تشغيل التورنت قبل مسح الذاكرة المؤقتة.</string><string name="torrent_cache_clear_failed">تعذر مسح الذاكرة المؤقتة.</string>+ <string name="torrent_cache_cleared">تم مسح الذاكرة المؤقتة.</string><string name="extensions_title">التمديدات</string><string name="plugins_section_description">أضف ميزات إلى StreamVault باستخدام تطبيقات Android المرافقة.</string><string name="plugins_install_url">تثبيت ملحق من رابط</string>diff --git a/feature/system/src/main/res/values-bg/strings.xml b/feature/system/src/main/res/values-bg/strings.xmlindex d4f22446..ef471a72 100644--- a/feature/system/src/main/res/values-bg/strings.xml+++ b/feature/system/src/main/res/values-bg/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Да се премахнат ли временните торент данни? Запазените изтегляния няма да бъдат изтрити.</string><string name="torrent_cache_active">Спрете възпроизвеждането на торент, преди да изчистите кеша.</string><string name="torrent_cache_clear_failed">Временният кеш не можа да бъде изчистен.</string>+ <string name="torrent_cache_cleared">Временният кеш е изчистен.</string><string name="extensions_title">Разширения</string><string name="plugins_section_description">Добавяйте функции към StreamVault с придружаващи Android приложения.</string><string name="plugins_install_url">Инсталиране на приставка от URL адрес</string>diff --git a/feature/system/src/main/res/values-cs/strings.xml b/feature/system/src/main/res/values-cs/strings.xmlindex ac660db8..42e03ef1 100644--- a/feature/system/src/main/res/values-cs/strings.xml+++ b/feature/system/src/main/res/values-cs/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Odebrat dočasná data torrentů? Uložená stažení nebudou smazána.</string><string name="torrent_cache_active">Před vymazáním mezipaměti zastavte přehrávání torrentu.</string><string name="torrent_cache_clear_failed">Dočasnou mezipaměť se nepodařilo vymazat.</string>+ <string name="torrent_cache_cleared">Dočasná mezipaměť byla vymazána.</string><string name="extensions_title">Rozšíření</string><string name="plugins_section_description">Přidejte StreamVaultu funkce pomocí doprovodných aplikací pro Android.</string><string name="plugins_install_url">Nainstalovat plugin z URL</string>diff --git a/feature/system/src/main/res/values-da/strings.xml b/feature/system/src/main/res/values-da/strings.xmlindex c3ae41d9..7fc33f2b 100644--- a/feature/system/src/main/res/values-da/strings.xml+++ b/feature/system/src/main/res/values-da/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Fjern midlertidige torrentdata? Gemte downloads slettes ikke.</string><string name="torrent_cache_active">Stop torrentafspilning, før du rydder cachen.</string><string name="torrent_cache_clear_failed">Den midlertidige cache kunne ikke ryddes.</string>+ <string name="torrent_cache_cleared">Den midlertidige cache er ryddet.</string><string name="extensions_title">Udvidelser</string><string name="plugins_section_description">Føj funktioner til StreamVault med ledsagende Android-apps.</string><string name="plugins_install_url">Installér plugin fra URL</string>diff --git a/feature/system/src/main/res/values-de/strings.xml b/feature/system/src/main/res/values-de/strings.xmlindex c423eace..990d8a7b 100644--- a/feature/system/src/main/res/values-de/strings.xml+++ b/feature/system/src/main/res/values-de/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Temporäre Torrent-Daten entfernen? Gespeicherte Downloads werden nicht gelöscht.</string><string name="torrent_cache_active">Beende die Torrent-Wiedergabe, bevor du den Cache leerst.</string><string name="torrent_cache_clear_failed">Der temporäre Cache konnte nicht geleert werden.</string>+ <string name="torrent_cache_cleared">Temporärer Cache geleert.</string><string name="extensions_title">Erweiterungen</string><string name="plugins_section_description">Erweitere StreamVault mit begleitenden Android-Apps um neue Funktionen.</string><string name="plugins_install_url">Plugin von URL installieren</string>diff --git a/feature/system/src/main/res/values-el/strings.xml b/feature/system/src/main/res/values-el/strings.xmlindex 2cc34ae7..fd8cc193 100644--- a/feature/system/src/main/res/values-el/strings.xml+++ b/feature/system/src/main/res/values-el/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Να αφαιρεθούν τα προσωρινά δεδομένα torrent; Οι αποθηκευμένες λήψεις δεν θα διαγραφούν.</string><string name="torrent_cache_active">Σταματήστε την αναπαραγωγή torrent πριν από την εκκαθάριση.</string><string name="torrent_cache_clear_failed">Δεν ήταν δυνατή η εκκαθάριση της προσωρινής cache.</string>+ <string name="torrent_cache_cleared">Η προσωρινή cache εκκαθαρίστηκε.</string><string name="extensions_title">Επεκτάσεις</string><string name="plugins_section_description">Προσθέστε λειτουργίες στο StreamVault με συνοδευτικές εφαρμογές Android.</string><string name="plugins_install_url">Εγκατάσταση πρόσθετου από URL</string>diff --git a/feature/system/src/main/res/values-es/strings.xml b/feature/system/src/main/res/values-es/strings.xmlindex 5c14d758..249686f6 100644--- a/feature/system/src/main/res/values-es/strings.xml+++ b/feature/system/src/main/res/values-es/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">¿Quitar los datos temporales de torrents? Las descargas guardadas no se borrarán.</string><string name="torrent_cache_active">Detén la reproducción del torrent antes de borrar la caché.</string><string name="torrent_cache_clear_failed">No se pudo borrar la caché temporal.</string>+ <string name="torrent_cache_cleared">Caché temporal borrada.</string><string name="extensions_title">Extensiones</string><string name="plugins_section_description">Añade funciones a StreamVault con aplicaciones Android complementarias.</string><string name="plugins_install_url">Instalar plugin desde URL</string>diff --git a/feature/system/src/main/res/values-fa/strings.xml b/feature/system/src/main/res/values-fa/strings.xmlindex bb7c0e19..70f0cb27 100644--- a/feature/system/src/main/res/values-fa/strings.xml+++ b/feature/system/src/main/res/values-fa/strings.xml@@ -59,5 +59,6 @@<string name="torrent_cache_confirm_message">داده موقت تورنت حذف شود؟ دانلودهای ذخیرهشده حذف نمیشوند.</string><string name="torrent_cache_active">پیش از پاک کردن حافظه موقت، پخش تورنت را متوقف کنید.</string><string name="torrent_cache_clear_failed">پاک کردن حافظه موقت انجام نشد.</string>+ <string name="torrent_cache_cleared">حافظه موقت پاک شد.</string><string name="welcome_dont_ask_again">دیگر از من نپرس</string></resources>diff --git a/feature/system/src/main/res/values-fi/strings.xml b/feature/system/src/main/res/values-fi/strings.xmlindex 3bca3ac6..c2c307e7 100644--- a/feature/system/src/main/res/values-fi/strings.xml+++ b/feature/system/src/main/res/values-fi/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Poistetaanko torrentin väliaikaiset tiedot? Tallennettuja latauksia ei poisteta.</string><string name="torrent_cache_active">Pysäytä torrentin toisto ennen välimuistin tyhjentämistä.</string><string name="torrent_cache_clear_failed">Väliaikaisen välimuistin tyhjentäminen epäonnistui.</string>+ <string name="torrent_cache_cleared">Väliaikainen välimuisti tyhjennetty.</string><string name="extensions_title">Laajennukset</string><string name="plugins_section_description">Lisää ominaisuuksia StreamVaultiin kumppani-Android-sovelluksilla.</string><string name="plugins_install_url">Asenna liitännäinen URL-osoitteesta</string>diff --git a/feature/system/src/main/res/values-fil/strings.xml b/feature/system/src/main/res/values-fil/strings.xmlindex e638b151..3c4281d4 100644--- a/feature/system/src/main/res/values-fil/strings.xml+++ b/feature/system/src/main/res/values-fil/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Alisin ang pansamantalang data ng torrent? Hindi buburahin ang mga naka-save na download.</string><string name="torrent_cache_active">Ihinto muna ang pag-play ng torrent bago i-clear ang cache.</string><string name="torrent_cache_clear_failed">Hindi na-clear ang pansamantalang cache.</string>+ <string name="torrent_cache_cleared">Na-clear ang pansamantalang cache.</string><string name="extensions_title">Mga extension</string><string name="plugins_section_description">Magdagdag ng feature sa StreamVault gamit ang mga kasamang Android app.</string><string name="plugins_install_url">I-install ang plugin mula sa URL</string>diff --git a/feature/system/src/main/res/values-fr/strings.xml b/feature/system/src/main/res/values-fr/strings.xmlindex 4ac219e3..a4bae964 100644--- a/feature/system/src/main/res/values-fr/strings.xml+++ b/feature/system/src/main/res/values-fr/strings.xml@@ -48,6 +48,7 @@<string name="torrent_cache_confirm_message">Supprimer les données temporaires des torrents ? Les téléchargements enregistrés ne seront pas supprimés.</string><string name="torrent_cache_active">Arrêtez la lecture du torrent avant de vider le cache.</string><string name="torrent_cache_clear_failed">Impossible de vider le cache temporaire.</string>+ <string name="torrent_cache_cleared">Cache temporaire vidé.</string><string name="extensions_title">Extensions</string><string name="plugins_section_description">Ajoutez des fonctionnalités à StreamVault avec des applications Android compagnon.</string><string name="plugins_install_url">Installer un plugin depuis une URL</string>diff --git a/feature/system/src/main/res/values-hi/strings.xml b/feature/system/src/main/res/values-hi/strings.xmlindex e0924015..bb495891 100644--- a/feature/system/src/main/res/values-hi/strings.xml+++ b/feature/system/src/main/res/values-hi/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">अस्थायी टोरेंट डेटा हटाएँ? सेव किए गए डाउनलोड नहीं हटेंगे.</string><string name="torrent_cache_active">कैश साफ़ करने से पहले टोरेंट प्लेबैक रोकें.</string><string name="torrent_cache_clear_failed">अस्थायी कैश साफ़ नहीं किया जा सका।</string>+ <string name="torrent_cache_cleared">अस्थायी कैश साफ़ किया गया।</string><string name="extensions_title">एक्सटेंशन</string><string name="plugins_section_description">कंपैनियन Android ऐप्स के साथ StreamVault में सुविधाएँ जोड़ें।</string><string name="plugins_install_url">URL से प्लगइन इंस्टॉल करें</string>diff --git a/feature/system/src/main/res/values-hr/strings.xml b/feature/system/src/main/res/values-hr/strings.xmlindex 12c6bbb6..cd90dcc2 100644--- a/feature/system/src/main/res/values-hr/strings.xml+++ b/feature/system/src/main/res/values-hr/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Ukloniti privremene torrent podatke? Spremljena preuzimanja neće se izbrisati.</string><string name="torrent_cache_active">Zaustavite reprodukciju torrenta prije čišćenja predmemorije.</string><string name="torrent_cache_clear_failed">Privremenu predmemoriju nije moguće očistiti.</string>+ <string name="torrent_cache_cleared">Privremena predmemorija je očišćena.</string><string name="extensions_title">Proširenja</string><string name="plugins_section_description">Dodajte značajke u StreamVault uz popratne Android aplikacije.</string><string name="plugins_install_url">Instaliraj priključak s URL-a</string>diff --git a/feature/system/src/main/res/values-hu/strings.xml b/feature/system/src/main/res/values-hu/strings.xmlindex 244da9e9..bb0873c5 100644--- a/feature/system/src/main/res/values-hu/strings.xml+++ b/feature/system/src/main/res/values-hu/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Eltávolítod az ideiglenes torrentadatokat? A mentett letöltések nem törlődnek.</string><string name="torrent_cache_active">A gyorsítótár törlése előtt állítsd le a torrent lejátszását.</string><string name="torrent_cache_clear_failed">Az ideiglenes gyorsítótár nem törölhető.</string>+ <string name="torrent_cache_cleared">Az ideiglenes gyorsítótár törölve.</string><string name="extensions_title">Kiterjesztések</string><string name="plugins_section_description">Adjon új funkciókat a StreamVaulthoz társ Android-alkalmazásokkal.</string><string name="plugins_install_url">Bővítmény telepítése URL-ről</string>diff --git a/feature/system/src/main/res/values-in/strings.xml b/feature/system/src/main/res/values-in/strings.xmlindex 88e79907..47294d44 100644--- a/feature/system/src/main/res/values-in/strings.xml+++ b/feature/system/src/main/res/values-in/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Hapus data torrent sementara? Unduhan tersimpan tidak akan dihapus.</string><string name="torrent_cache_active">Hentikan pemutaran torrent sebelum menghapus cache.</string><string name="torrent_cache_clear_failed">Cache sementara tidak dapat dihapus.</string>+ <string name="torrent_cache_cleared">Cache sementara dihapus.</string><string name="extensions_title">Ekstensi</string><string name="plugins_section_description">Tambahkan fitur ke StreamVault dengan aplikasi pendamping Android.</string><string name="plugins_install_url">Pasang plugin dari URL</string>diff --git a/feature/system/src/main/res/values-it/strings.xml b/feature/system/src/main/res/values-it/strings.xmlindex 833263b0..a9c542bb 100644--- a/feature/system/src/main/res/values-it/strings.xml+++ b/feature/system/src/main/res/values-it/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Rimuovere i dati torrent temporanei? I download salvati non verranno eliminati.</string><string name="torrent_cache_active">Interrompi la riproduzione del torrent prima di svuotare la cache.</string><string name="torrent_cache_clear_failed">Impossibile svuotare la cache temporanea.</string>+ <string name="torrent_cache_cleared">Cache temporanea svuotata.</string><string name="extensions_title">Estensioni</string><string name="plugins_section_description">Aggiungi funzionalità a StreamVault con app Android complementari.</string><string name="plugins_install_url">Installa plugin da URL</string>diff --git a/feature/system/src/main/res/values-iw/strings.xml b/feature/system/src/main/res/values-iw/strings.xmlindex 71fdcc86..b6906a06 100644--- a/feature/system/src/main/res/values-iw/strings.xml+++ b/feature/system/src/main/res/values-iw/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">להסיר נתוני טורנט זמניים? הורדות שמורות לא יימחקו.</string><string name="torrent_cache_active">יש לעצור את ניגון הטורנט לפני ניקוי המטמון.</string><string name="torrent_cache_clear_failed">לא ניתן לנקות את המטמון הזמני.</string>+ <string name="torrent_cache_cleared">המטמון הזמני נוקה.</string><string name="extensions_title">הרחבות</string><string name="plugins_section_description">הוספת תכונות ל-StreamVault עם אפליקציות Android נלוות.</string><string name="plugins_install_url">התקנת תוסף מכתובת URL</string>diff --git a/feature/system/src/main/res/values-ja/strings.xml b/feature/system/src/main/res/values-ja/strings.xmlindex 78ffe5e2..20aaf580 100644--- a/feature/system/src/main/res/values-ja/strings.xml+++ b/feature/system/src/main/res/values-ja/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">トレントの一時データを削除しますか?保存済みのダウンロードは削除されません。</string><string name="torrent_cache_active">キャッシュを消去する前にトレント再生を停止してください。</string><string name="torrent_cache_clear_failed">一時キャッシュを消去できませんでした。</string>+ <string name="torrent_cache_cleared">一時キャッシュを消去しました。</string><string name="extensions_title">拡張機能</string><string name="plugins_section_description">AndroidコンパニオンアプリでStreamVaultに機能を追加できます。</string><string name="plugins_install_url">URLからプラグインをインストール</string>diff --git a/feature/system/src/main/res/values-ko/strings.xml b/feature/system/src/main/res/values-ko/strings.xmlindex 70bf9e74..fd37ae6c 100644--- a/feature/system/src/main/res/values-ko/strings.xml+++ b/feature/system/src/main/res/values-ko/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">임시 토렌트 데이터를 삭제할까요? 저장된 다운로드는 삭제되지 않습니다.</string><string name="torrent_cache_active">캐시를 지우기 전에 토렌트 재생을 중지하세요.</string><string name="torrent_cache_clear_failed">임시 캐시를 지우지 못했습니다.</string>+ <string name="torrent_cache_cleared">임시 캐시를 지웠습니다.</string><string name="extensions_title">확장 기능</string><string name="plugins_section_description">동반 Android 앱으로 StreamVault에 기능을 추가하세요.</string><string name="plugins_install_url">URL에서 플러그인 설치</string>diff --git a/feature/system/src/main/res/values-mk/strings.xml b/feature/system/src/main/res/values-mk/strings.xmlindex 6ee6e88c..a598accb 100644--- a/feature/system/src/main/res/values-mk/strings.xml+++ b/feature/system/src/main/res/values-mk/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Да се отстранат привремените податоци за торенти? Зачуваните преземања нема да се избришат.</string><string name="torrent_cache_active">Запрете ја репродукцијата на торент пред да го исчистите кешот.</string><string name="torrent_cache_clear_failed">Привремениот кеш не може да се исчисти.</string>+ <string name="torrent_cache_cleared">Привремениот кеш е исчистен.</string><string name="extensions_title">Проширувања</string><string name="plugins_section_description">Додај функции во StreamVault со придружни Android апликации.</string><string name="plugins_install_url">Инсталирај приклучок од URL</string>diff --git a/feature/system/src/main/res/values-ms/strings.xml b/feature/system/src/main/res/values-ms/strings.xmlindex bd8d9f3b..6707ccb4 100644--- a/feature/system/src/main/res/values-ms/strings.xml+++ b/feature/system/src/main/res/values-ms/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Buang data torrent sementara? Muat turun tersimpan tidak akan dipadamkan.</string><string name="torrent_cache_active">Hentikan main balik torrent sebelum mengosongkan cache.</string><string name="torrent_cache_clear_failed">Cache sementara tidak dapat dikosongkan.</string>+ <string name="torrent_cache_cleared">Cache sementara dikosongkan.</string><string name="extensions_title">Sambungan</string><string name="plugins_section_description">Tambah ciri pada StreamVault dengan aplikasi pendamping Android.</string>diff --git a/feature/system/src/main/res/values-nb/strings.xml b/feature/system/src/main/res/values-nb/strings.xmlindex f1e00fef..13e31f68 100644--- a/feature/system/src/main/res/values-nb/strings.xml+++ b/feature/system/src/main/res/values-nb/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Fjerne midlertidige torrentdata? Lagrede nedlastinger slettes ikke.</string><string name="torrent_cache_active">Stopp torrentavspillingen før du tømmer bufferen.</string><string name="torrent_cache_clear_failed">Den midlertidige bufferen kunne ikke tømmes.</string>+ <string name="torrent_cache_cleared">Den midlertidige bufferen er tømt.</string><string name="extensions_title">Utvidelser</string><string name="plugins_section_description">Legg til funksjoner i StreamVault med ledsagerapper for Android.</string><string name="plugins_install_url">Installer programtillegg fra URL</string>diff --git a/feature/system/src/main/res/values-nl/strings.xml b/feature/system/src/main/res/values-nl/strings.xmlindex d6c0c04f..094d93ff 100644--- a/feature/system/src/main/res/values-nl/strings.xml+++ b/feature/system/src/main/res/values-nl/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Tijdelijke torrentgegevens verwijderen? Opgeslagen downloads worden niet verwijderd.</string><string name="torrent_cache_active">Stop de torrentweergave voordat je de cache wist.</string><string name="torrent_cache_clear_failed">De tijdelijke cache kan niet worden gewist.</string>+ <string name="torrent_cache_cleared">Tijdelijke cache gewist.</string><string name="extensions_title">Extensies</string><string name="plugins_section_description">Voeg functies toe aan StreamVault met begeleidende Android-apps.</string><string name="plugins_install_url">Plugin installeren vanaf URL</string>diff --git a/feature/system/src/main/res/values-pl/strings.xml b/feature/system/src/main/res/values-pl/strings.xmlindex a622fd5d..7a8a4394 100644--- a/feature/system/src/main/res/values-pl/strings.xml+++ b/feature/system/src/main/res/values-pl/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Usunąć tymczasowe dane torrentów? Zapisane pliki nie zostaną usunięte.</string><string name="torrent_cache_active">Zatrzymaj odtwarzanie torrenta przed wyczyszczeniem pamięci.</string><string name="torrent_cache_clear_failed">Nie udało się wyczyścić pamięci tymczasowej.</string>+ <string name="torrent_cache_cleared">Pamięć tymczasowa została wyczyszczona.</string><string name="extensions_title">Rozszerzenia</string><string name="plugins_section_description">Dodaj funkcje do StreamVault dzięki towarzyszącym aplikacjom na Androida.</string><string name="plugins_install_url">Zainstaluj wtyczkę z adresu URL</string>diff --git a/feature/system/src/main/res/values-pt/strings.xml b/feature/system/src/main/res/values-pt/strings.xmlindex c8da9240..add76fdd 100644--- a/feature/system/src/main/res/values-pt/strings.xml+++ b/feature/system/src/main/res/values-pt/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Remover os dados temporários de torrents? Os downloads guardados não serão apagados.</string><string name="torrent_cache_active">Pare a reprodução do torrent antes de limpar o cache.</string><string name="torrent_cache_clear_failed">Não foi possível limpar o cache temporário.</string>+ <string name="torrent_cache_cleared">Cache temporário limpo.</string><string name="extensions_title">Extensões</string><string name="plugins_section_description">Adicione funcionalidades ao StreamVault com apps Android complementares.</string><string name="plugins_install_url">Instalar plugin a partir de URL</string>diff --git a/feature/system/src/main/res/values-ro/strings.xml b/feature/system/src/main/res/values-ro/strings.xmlindex 2082daa2..2afe0ac2 100644--- a/feature/system/src/main/res/values-ro/strings.xml+++ b/feature/system/src/main/res/values-ro/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Elimini datele temporare pentru torrente? Descărcările salvate nu vor fi șterse.</string><string name="torrent_cache_active">Oprește redarea torrentului înainte de a șterge cache-ul.</string><string name="torrent_cache_clear_failed">Cache-ul temporar nu a putut fi șters.</string>+ <string name="torrent_cache_cleared">Cache-ul temporar a fost șters.</string><string name="extensions_title">Extensii</string><string name="plugins_section_description">Adaugă funcționalități la StreamVault cu aplicații companion Android.</string><string name="plugins_install_url">Instalează plugin de la URL</string>diff --git a/feature/system/src/main/res/values-ru/strings.xml b/feature/system/src/main/res/values-ru/strings.xmlindex 127a34bc..96598e34 100644--- a/feature/system/src/main/res/values-ru/strings.xml+++ b/feature/system/src/main/res/values-ru/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Удалить временные данные торрентов? Сохранённые загрузки не будут удалены.</string><string name="torrent_cache_active">Остановите воспроизведение торрента перед очисткой кэша.</string><string name="torrent_cache_clear_failed">Не удалось очистить временный кэш.</string>+ <string name="torrent_cache_cleared">Временный кэш очищен.</string><string name="extensions_title">Расширения</string><string name="plugins_section_description">Добавляйте функции в StreamVault с помощью приложений-компаньонов для Android.</string><string name="plugins_install_url">Установить плагин по URL</string>diff --git a/feature/system/src/main/res/values-sk/strings.xml b/feature/system/src/main/res/values-sk/strings.xmlindex 92fe47cf..c715374b 100644--- a/feature/system/src/main/res/values-sk/strings.xml+++ b/feature/system/src/main/res/values-sk/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Odstrániť dočasné údaje torrentov? Uložené sťahovania sa nevymažú.</string><string name="torrent_cache_active">Pred vymazaním vyrovnávacej pamäte zastavte prehrávanie torrentu.</string><string name="torrent_cache_clear_failed">Dočasnú vyrovnávaciu pamäť sa nepodarilo vymazať.</string>+ <string name="torrent_cache_cleared">Dočasná vyrovnávacia pamäť bola vymazaná.</string><string name="extensions_title">Rozšírenia</string><string name="plugins_section_description">Pridajte do StreamVault nové funkcie pomocou sprievodných aplikácií pre Android.</string><string name="plugins_install_url">Nainštalovať plugin z URL</string>diff --git a/feature/system/src/main/res/values-sq/strings.xml b/feature/system/src/main/res/values-sq/strings.xmlindex e77d53ed..ad070ce6 100644--- a/feature/system/src/main/res/values-sq/strings.xml+++ b/feature/system/src/main/res/values-sq/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Të hiqen të dhënat e përkohshme të torrentit? Shkarkimet e ruajtura nuk do të fshihen.</string><string name="torrent_cache_active">Ndalo luajtjen e torrentit para pastrimit të memories.</string><string name="torrent_cache_clear_failed">Memoria e përkohshme nuk mund të pastrohej.</string>+ <string name="torrent_cache_cleared">Memoria e përkohshme u pastrua.</string><string name="extensions_title">Zgjerimet</string><string name="plugins_section_description">Shto funksione në StreamVault me aplikacione shoqëruese Android.</string><string name="plugins_install_url">Instalo shtojcë nga URL</string>diff --git a/feature/system/src/main/res/values-sr/strings.xml b/feature/system/src/main/res/values-sr/strings.xmlindex 684201be..08eaa0ed 100644--- a/feature/system/src/main/res/values-sr/strings.xml+++ b/feature/system/src/main/res/values-sr/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Уклонити привремене податке торената? Сачувана преузимања неће бити обрисана.</string><string name="torrent_cache_active">Зауставите репродукцију торента пре брисања кеша.</string><string name="torrent_cache_clear_failed">Привремени кеш није могуће обрисати.</string>+ <string name="torrent_cache_cleared">Привремени кеш је обрисан.</string><string name="extensions_title">Проширења</string><string name="plugins_section_description">Додајте функције у StreamVault уз пратеће Android апликације.</string><string name="plugins_install_url">Инсталирај прикључак са URL-а</string>diff --git a/feature/system/src/main/res/values-sv/strings.xml b/feature/system/src/main/res/values-sv/strings.xmlindex 00982d49..8d88cb38 100644--- a/feature/system/src/main/res/values-sv/strings.xml+++ b/feature/system/src/main/res/values-sv/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Ta bort tillfälliga torrentdata? Sparade nedladdningar tas inte bort.</string><string name="torrent_cache_active">Stoppa torrentuppspelningen innan du rensar cachen.</string><string name="torrent_cache_clear_failed">Det gick inte att rensa den tillfälliga cachen.</string>+ <string name="torrent_cache_cleared">Den tillfälliga cachen har rensats.</string><string name="extensions_title">Tillägg</string><string name="plugins_section_description">Lägg till funktioner i StreamVault med kompanjonappar för Android.</string><string name="plugins_install_url">Installera insticksprogram från URL</string>diff --git a/feature/system/src/main/res/values-th/strings.xml b/feature/system/src/main/res/values-th/strings.xmlindex f141c4fa..c9ea7fbd 100644--- a/feature/system/src/main/res/values-th/strings.xml+++ b/feature/system/src/main/res/values-th/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">ลบข้อมูลทอร์เรนต์ชั่วคราวหรือไม่ รายการดาวน์โหลดที่บันทึกไว้จะไม่ถูกลบ</string><string name="torrent_cache_active">หยุดเล่นทอร์เรนต์ก่อนล้างแคช</string><string name="torrent_cache_clear_failed">ล้างแคชชั่วคราวไม่สำเร็จ</string>+ <string name="torrent_cache_cleared">ล้างแคชชั่วคราวแล้ว</string><string name="extensions_title">ส่วนขยาย</string><string name="plugins_section_description">เพิ่มคุณสมบัติให้ StreamVault ด้วยแอป Android เสริม</string><string name="plugins_install_url">ติดตั้งปลั๊กอินจาก URL</string>diff --git a/feature/system/src/main/res/values-tr/strings.xml b/feature/system/src/main/res/values-tr/strings.xmlindex a590f3df..ccb999ba 100644--- a/feature/system/src/main/res/values-tr/strings.xml+++ b/feature/system/src/main/res/values-tr/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Geçici torrent verileri kaldırılsın mı? Kaydedilen indirmeler silinmez.</string><string name="torrent_cache_active">Önbelleği temizlemeden önce torrent oynatmayı durdurun.</string><string name="torrent_cache_clear_failed">Geçici önbellek temizlenemedi.</string>+ <string name="torrent_cache_cleared">Geçici önbellek temizlendi.</string><string name="extensions_title">Eklentiler</string><string name="plugins_section_description">Android yardımcı uygulamalarıyla StreamVault\'a özellik ekleyin.</string><string name="plugins_install_url">URL\'den eklenti yükle</string>diff --git a/feature/system/src/main/res/values-uk/strings.xml b/feature/system/src/main/res/values-uk/strings.xmlindex cd12844c..bf5a9855 100644--- a/feature/system/src/main/res/values-uk/strings.xml+++ b/feature/system/src/main/res/values-uk/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Видалити тимчасові дані торрентів? Збережені завантаження не буде видалено.</string><string name="torrent_cache_active">Зупиніть відтворення торрента перед очищенням кешу.</string><string name="torrent_cache_clear_failed">Не вдалося очистити тимчасовий кеш.</string>+ <string name="torrent_cache_cleared">Тимчасовий кеш очищено.</string><string name="extensions_title">Розширення</string><string name="plugins_section_description">Розширюйте можливості StreamVault за допомогою супутніх Android-додатків.</string><string name="plugins_install_url">Встановити плагін з URL-адреси</string>diff --git a/feature/system/src/main/res/values-vi/strings.xml b/feature/system/src/main/res/values-vi/strings.xmlindex b77433c8..d8c80888 100644--- a/feature/system/src/main/res/values-vi/strings.xml+++ b/feature/system/src/main/res/values-vi/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">Xóa dữ liệu torrent tạm thời? Nội dung đã tải xuống sẽ không bị xóa.</string><string name="torrent_cache_active">Hãy dừng phát torrent trước khi xóa bộ nhớ đệm.</string><string name="torrent_cache_clear_failed">Không thể xóa bộ nhớ đệm tạm thời.</string>+ <string name="torrent_cache_cleared">Đã xóa bộ nhớ đệm tạm thời.</string><string name="extensions_title">Tiện ích mở rộng</string><string name="plugins_section_description">Thêm tính năng cho StreamVault bằng các ứng dụng Android đồng hành.</string><string name="plugins_install_url">Cài trình cắm từ URL</string>diff --git a/feature/system/src/main/res/values-zh-rTW/strings.xml b/feature/system/src/main/res/values-zh-rTW/strings.xmlindex f762100a..b563ecfe 100644--- a/feature/system/src/main/res/values-zh-rTW/strings.xml+++ b/feature/system/src/main/res/values-zh-rTW/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">要移除暫存 Torrent 資料嗎?不會刪除已儲存的下載內容。</string><string name="torrent_cache_active">請先停止 Torrent 播放,再清除快取。</string><string name="torrent_cache_clear_failed">無法清除暫存快取。</string>+ <string name="torrent_cache_cleared">已清除暫存快取。</string><string name="extensions_title">擴充功能</string><string name="plugins_section_description">透過相容的 Android 應用程式為 StreamVault 新增功能。</string><string name="plugins_install_url">從 URL 安裝外掛程式</string>diff --git a/feature/system/src/main/res/values-zh/strings.xml b/feature/system/src/main/res/values-zh/strings.xmlindex 5f797a06..8d556f82 100644--- a/feature/system/src/main/res/values-zh/strings.xml+++ b/feature/system/src/main/res/values-zh/strings.xml@@ -46,6 +46,7 @@<string name="torrent_cache_confirm_message">移除临时种子数据?不会删除已保存的下载内容。</string><string name="torrent_cache_active">请先停止种子播放,再清除缓存。</string><string name="torrent_cache_clear_failed">无法清除临时缓存。</string>+ <string name="torrent_cache_cleared">已清除临时缓存。</string><string name="extensions_title">扩展功能</string><string name="plugins_section_description">通过兼容的 Android 应用为 StreamVault 添加功能。</string><string name="plugins_install_url">从 URL 安装插件</string>diff --git a/feature/system/src/main/res/values/strings.xml b/feature/system/src/main/res/values/strings.xmlindex 0f4f26ff..4b673c0b 100644--- a/feature/system/src/main/res/values/strings.xml+++ b/feature/system/src/main/res/values/strings.xml@@ -60,4 +60,5 @@<string name="torrent_cache_confirm_message">Remove temporary torrent data? Saved downloads will not be deleted.</string><string name="torrent_cache_active">Stop torrent playback before clearing the cache.</string><string name="torrent_cache_clear_failed">Could not clear the temporary cache.</string>+ <string name="torrent_cache_cleared">Temporary cache cleared.</string></resources>diff --git a/feature/system/src/test/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModelTest.kt b/feature/system/src/test/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModelTest.ktindex f94182ce..ca0d86d8 100644--- a/feature/system/src/test/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModelTest.kt+++ b/feature/system/src/test/java/com/streamvault/feature/system/presentation/downloads/DownloadsViewModelTest.kt@@ -71,6 +71,18 @@ class DownloadsViewModelTest {assertThat(manager.deletedIds).containsExactly("download-7")}+ @Test+ fun clearingTheCacheSaysSoWhenItWorked() = runTest {+ val viewModel = createViewModel(RecordingDownloadManager())+ advanceUntilIdle()++ viewModel.showClearTorrentCacheConfirm()+ viewModel.confirmClearTorrentCache()+ advanceUntilIdle()++ assertThat(viewModel.uiState.value.userMessage).isEqualTo("Temporary cache cleared.")+ }+@Testfun missingOutputUriReturnsNullWithoutStoppingPlayback() {val manager = RecordingDownloadManager()@@ -157,6 +169,7 @@ class DownloadsViewModelTest {): DownloadsViewModel {whenever(application.getString(R.string.downloads_deleted)).thenReturn("Downloads deleted")whenever(application.getString(R.string.downloads_resumed)).thenReturn("Downloads resumed")+ whenever(application.getString(R.string.torrent_cache_cleared)).thenReturn("Temporary cache cleared.")return DownloadsViewModel(downloadManager = manager,torrentCacheManager = object : TorrentCacheManager {