From 6308ad85a9ccb97794ae8027375bb9aea7ef6f28 Mon Sep 17 00:00:00 2001 From: SergeiAK Date: Mon, 21 Sep 2026 05:27:54 +0000 Subject: [PATCH 1/9] Translated using Weblate (Russian) Currently translated at 100.0% (659 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/ru/ --- app/src/main/res/values-ru/strings.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index dcd81011..1c2321e9 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -91,7 +91,7 @@ Студии Субтитры Субтитры - Рекомендации + Предложения Сменить сервер Сменить Лучшие из непросмотренных @@ -728,7 +728,7 @@ Туннелирование видео Вид полосы перемотки при нажатии кнопок пульта Минимальный - Trickplay + Превью при перемотке Небольшая полоса перемотки внизу экрана (по умолчанию) Полоса перемотки с миниатюрами кадров (Trickplay) Без полосы перемотки @@ -759,8 +759,8 @@ Процент затемнения Затемнение экрана Фотоальбомы - В избранном пока ничего нет + В избранном пока ничего нет! Убрать из плейлиста - Срок действия учётных данных истёк. Пожалуйста, войдите снова. + Срок действия учётных данных истёк. Пожалуйста, войдите снова У вас нет доступа к серверу в данный момент From c879a5713f6df3eccfe4b76c68fe0cb5828a5d10 Mon Sep 17 00:00:00 2001 From: Outbreak2096 Date: Sun, 27 Sep 2026 05:44:52 +0000 Subject: [PATCH 2/9] Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (659 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/zh_Hans/ --- app/src/main/res/values-zh-rCN/strings.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index a8f40586..e36dc507 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -687,4 +687,14 @@ 调暗屏幕 相册 未找到收藏! + %1$d小时%2$d秒 + 第%1$d季 第%2$d集 + 第%1$d季 第%2$d-%3$d集 + 第%1$02d季第%2$02d集 + 第%1$02d季第%2$02d-%3$02d集 + 第%1$d集 + 第%1$d季 + 从播放列表中移除 + 凭据已过期,请重新登录 + 您目前无权访问该服务器 From 68c48f154cc7b8991c64914d6b2d4bb42477264b Mon Sep 17 00:00:00 2001 From: danpergal84 Date: Tue, 29 Sep 2026 10:36:13 +0000 Subject: [PATCH 3/9] Translated using Weblate (Spanish) Currently translated at 100.0% (659 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/es/ --- app/src/main/res/values-es/strings.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index c70eeeba..86048caf 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -738,4 +738,7 @@ T%1$02dE%2$02d-E%3$02d E%1$d Temporada %1$d + Eliminar de la lista de reproducción + Credenciales caducadas, vuelve a iniciar sesión + No tienes autorización para acceder al servidor en este momento From f14e5a575697f47055108c95f31bba2716c1ba93 Mon Sep 17 00:00:00 2001 From: danpergal84 Date: Fri, 2 Oct 2026 09:26:50 +0000 Subject: [PATCH 4/9] Translated using Weblate (Spanish) Currently translated at 100.0% (659 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/es/ --- app/src/main/res/values-es/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 86048caf..0dbe1e87 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -55,7 +55,7 @@ Seleccionar servidor Seleccionar Usuario Nombre - Aleatorio + Selección aleatoria Estudios Enviar Subtítulo @@ -105,7 +105,7 @@ Quitar de favoritos Mostrar información de depuración Mostrar - Aleatorio + Reproducción aleatoria Saltar Ordenar por fecha de inclusión del episodio Acerca de From 55d3254b1ea519bf35a6d4d196e307cf7354da78 Mon Sep 17 00:00:00 2001 From: Prahlis Date: Fri, 2 Oct 2026 12:17:00 +0000 Subject: [PATCH 5/9] Translated using Weblate (Swedish) Currently translated at 94.8% (625 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/sv/ --- app/src/main/res/values-sv/strings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 4c4fff48..404c2bad 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -684,4 +684,5 @@ Inspelningar Mappar Användarvisningar + %1$sfilmer From db77aaa3a41785e25524f713927a5b0ee96296db Mon Sep 17 00:00:00 2001 From: TheMatrixan Date: Sun, 4 Oct 2026 18:46:44 +0000 Subject: [PATCH 6/9] Translated using Weblate (Polish) Currently translated at 100.0% (659 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/pl/ --- app/src/main/res/values-pl/strings.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index deb42ecd..a208aeb6 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -761,4 +761,6 @@ S%1$d O%2$d-%3$d S%1$02d O%2$02d S%1$02d O%2$02d-%3$02d + Wyłącz sprzętowe wsparcie dźwięku + Wyłączenie sprzętowego wsparcie dźwięku może naprawić błąd z zatrzymaniem się odtwarzania na niektórych urządzeniach From 1571591a1256c4776425e36aa9d1e01b3ee92732 Mon Sep 17 00:00:00 2001 From: Prahlis Date: Mon, 5 Oct 2026 19:53:28 +0000 Subject: [PATCH 7/9] Translated using Weblate (Swedish) Currently translated at 94.9% (626 of 659 strings) Translation: Wholphin/Wholphin Translate-URL: https://translate.codeberg.org/projects/wholphin/wholphin/sv/ --- app/src/main/res/values-sv/strings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 404c2bad..474d685a 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -685,4 +685,5 @@ Mappar Användarvisningar %1$sfilmer + Kvalitetsprofil From 5bfbba193aa017c3e44f53e9ffea10ed5b4baa51 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Sun, 11 Oct 2026 09:59:50 -0400 Subject: [PATCH 8/9] Fix issue with home reloading on user switch (#2064) ## Description When switching users, the current user's home page would start a reload during the switch. This PR fixes that by comparing the user switch. The underlying cause is that Room's flow is blunt and emits whenever the table updates. So [during the user switch](https://github.com/damontecres/Wholphin/blob/9b028040754acc58253b414c2c33a3ef4ca92d00/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt#L117-L118) the table is updated causing [current user to emit](https://github.com/damontecres/Wholphin/blob/9b028040754acc58253b414c2c33a3ef4ca92d00/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt#L71) and the current user flow is updated causing the new user to emit. ### Related issues N/A ### Testing Emulator, switching users and switching locales Can observe that `UserSwitchListener` only trigger once per user switch instead of twice ## Screenshots N/A ## AI or LLM usage None --- .../wholphin/data/ServerRepository.kt | 5 ++++- .../wholphin/services/UserSwitchListener.kt | 19 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt b/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt index f3cd888e..5deba4c3 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt @@ -17,6 +17,7 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow +import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.flatMapLatest import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.map @@ -68,7 +69,9 @@ class ServerRepository _current .flatMapLatest { user -> if (user?.user != null) { - serverDao.getUserFlow(user.user.serverId, user.user.id) + serverDao + .getUserFlow(user.user.serverId, user.user.id) + .distinctUntilChanged() } else { flow { emit(null) } } diff --git a/app/src/main/java/com/github/damontecres/wholphin/services/UserSwitchListener.kt b/app/src/main/java/com/github/damontecres/wholphin/services/UserSwitchListener.kt index 536dfb40..06115982 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/services/UserSwitchListener.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/services/UserSwitchListener.kt @@ -15,6 +15,8 @@ import com.github.damontecres.wholphin.ui.launchIO import com.github.damontecres.wholphin.util.WholphinDispatchers import dagger.hilt.android.qualifiers.ActivityContext import dagger.hilt.android.scopes.ActivityScoped +import kotlinx.coroutines.flow.collectLatest +import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.update import kotlinx.coroutines.supervisorScope import kotlinx.coroutines.withContext @@ -38,14 +40,17 @@ class UserSwitchListener init { context as AppCompatActivity context.lifecycleScope.launchDefault { - serverRepository.currentUserFlow.collect { user -> - Timber.d("New user") - seerrServerRepository.clear() - homeSettingsService.currentSettings.update { HomePageResolvedSettings.EMPTY } - if (user != null) { - switchUser(user) + serverRepository.currentUserFlow + .distinctUntilChanged { old, new -> + old?.id == new?.id && old?.uiLanguage == new?.uiLanguage + }.collectLatest { user -> + Timber.d("UserSwitch: %s", user?.id) + seerrServerRepository.clear() + homeSettingsService.currentSettings.update { HomePageResolvedSettings.EMPTY } + if (user != null) { + switchUser(user) + } } - } } } From 2d87d526dbfabd94c5033e16d14c215b206e8b10 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Sun, 11 Oct 2026 17:15:01 -0400 Subject: [PATCH 9/9] Release v1.0.9