From 462d3c513c28f15db3934de12967c69862104863 Mon Sep 17 00:00:00 2001 From: davidoskky Date: Thu, 13 Jul 2023 15:09:58 +0200 Subject: [PATCH] Delete unused preference setting --- androidApp/src/main/res/values-ca-rES/strings.xml | 4 +--- androidApp/src/main/res/values-de-rDE/strings.xml | 4 +--- androidApp/src/main/res/values-es-rES/strings.xml | 4 +--- androidApp/src/main/res/values-fa-rIR/strings.xml | 4 +--- androidApp/src/main/res/values-fr-rFR/strings.xml | 4 +--- androidApp/src/main/res/values-gl-rES/strings.xml | 4 +--- androidApp/src/main/res/values-in-rID/strings.xml | 4 +--- androidApp/src/main/res/values-it-rIT/strings.xml | 4 +--- androidApp/src/main/res/values-ko-rKR/strings.xml | 4 +--- androidApp/src/main/res/values-nl-rNL/strings.xml | 4 +--- androidApp/src/main/res/values-pt-rBR/strings.xml | 4 +--- androidApp/src/main/res/values-pt-rPT/strings.xml | 4 +--- androidApp/src/main/res/values-si-rLK/strings.xml | 4 +--- androidApp/src/main/res/values-tr-rTR/strings.xml | 4 +--- androidApp/src/main/res/values-zh-rCN/strings.xml | 4 +--- androidApp/src/main/res/values-zh-rTW/strings.xml | 4 +--- androidApp/src/main/res/values/strings.xml | 4 +--- androidApp/src/main/res/xml/pref_offline.xml | 7 ------- .../service/AppSettingsService.kt | 13 ------------- 19 files changed, 17 insertions(+), 71 deletions(-) diff --git a/androidApp/src/main/res/values-ca-rES/strings.xml b/androidApp/src/main/res/values-ca-rES/strings.xml index be27994..a7bdc82 100644 --- a/androidApp/src/main/res/values-ca-rES/strings.xml +++ b/androidApp/src/main/res/values-ca-rES/strings.xml @@ -1,5 +1,5 @@ - + "Lector per a Selfoss" "Inicia la sessió" "Contrasenya" @@ -88,8 +88,6 @@ Els articles no es guardaran a la memòria del dispositiu i l\'aplicació no es podrà utilitzar sense connexió. Els articles es guardaran a la memòria del dispositiu i es podran utilitzar sense connexió. Guarda els elements per utilitzar-los sense connexió - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sincronitza els articles diff --git a/androidApp/src/main/res/values-de-rDE/strings.xml b/androidApp/src/main/res/values-de-rDE/strings.xml index 036dcb9..b885655 100644 --- a/androidApp/src/main/res/values-de-rDE/strings.xml +++ b/androidApp/src/main/res/values-de-rDE/strings.xml @@ -1,5 +1,5 @@ - + "Reader für selfoss" "Anmelden" "Passwort" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Die Netzwerkverbindung wurde unterbrochen" "Netzwerkverbindung ist jetzt verfügbar" Synchronisiere Artikel diff --git a/androidApp/src/main/res/values-es-rES/strings.xml b/androidApp/src/main/res/values-es-rES/strings.xml index 9f9f902..8f13927 100644 --- a/androidApp/src/main/res/values-es-rES/strings.xml +++ b/androidApp/src/main/res/values-es-rES/strings.xml @@ -1,5 +1,5 @@ - + "Lector para Selfoss" "Iniciar sesión" "Contraseña" @@ -88,8 +88,6 @@ Los artículos no se guardarán en la memoria del dispositivo y la aplicación no se podrá utilizar sin conexión. Los artículos se guardarán en la memoria del dispositivo y se utilizarán para el uso sin conexión. Guardar elementos para uso sin conexión - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sincronizar artículos diff --git a/androidApp/src/main/res/values-fa-rIR/strings.xml b/androidApp/src/main/res/values-fa-rIR/strings.xml index d4951bb..a5c9d9d 100644 --- a/androidApp/src/main/res/values-fa-rIR/strings.xml +++ b/androidApp/src/main/res/values-fa-rIR/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "Log in" "Password" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-fr-rFR/strings.xml b/androidApp/src/main/res/values-fr-rFR/strings.xml index d99f94e..409034d 100644 --- a/androidApp/src/main/res/values-fr-rFR/strings.xml +++ b/androidApp/src/main/res/values-fr-rFR/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "Login" "Mot de passe" @@ -88,8 +88,6 @@ Les articles ne seront pas enregistrés et l\'application ne sera pas utilisable hors ligne. Les articles seront enregistrés et l\'application sera utilisable hors ligne. Sauvegarder les articles pour une utilisation hors ligne - Vérifier les nouvelles sources et tags - Désactivez cette option si votre serveur reçoit trop de requêtes. "Connexion au réseau perdue" "Connexion réseau de nouveau disponible" Synchroniser les articles diff --git a/androidApp/src/main/res/values-gl-rES/strings.xml b/androidApp/src/main/res/values-gl-rES/strings.xml index d32b7d1..309be7f 100644 --- a/androidApp/src/main/res/values-gl-rES/strings.xml +++ b/androidApp/src/main/res/values-gl-rES/strings.xml @@ -1,5 +1,5 @@ - + "Lector para selfoss" "Conectar" "Contrasinal" @@ -88,8 +88,6 @@ Os artigos non se gardaran na memoria do dispositivo e non se poderá utilizar a aplicación sen conexión. Os artigos gardaranse na memoria do dispositivo e estarán dispoñibles sen conexión. Gardar elementos para uso sen conexión - Comproba novas fontes e etiquetas - Deshabilita isto se o teu servidor está recibindo demasiadas peticións de base de datos. "Perdeuse a conexión de rede" "Conexión de rede xa dispoñíbel" Sincronizar artigos diff --git a/androidApp/src/main/res/values-in-rID/strings.xml b/androidApp/src/main/res/values-in-rID/strings.xml index 0f48e73..241119f 100644 --- a/androidApp/src/main/res/values-in-rID/strings.xml +++ b/androidApp/src/main/res/values-in-rID/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "Masuk" "Kata sandi" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Koneksi jaringan hilang" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-it-rIT/strings.xml b/androidApp/src/main/res/values-it-rIT/strings.xml index 5b28be0..b9eb978 100644 --- a/androidApp/src/main/res/values-it-rIT/strings.xml +++ b/androidApp/src/main/res/values-it-rIT/strings.xml @@ -1,5 +1,5 @@ - + "Lettore RSS per Selfoss" "Accedi" "Password" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-ko-rKR/strings.xml b/androidApp/src/main/res/values-ko-rKR/strings.xml index e155386..4c21093 100644 --- a/androidApp/src/main/res/values-ko-rKR/strings.xml +++ b/androidApp/src/main/res/values-ko-rKR/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "로그인" "비밀번호" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-nl-rNL/strings.xml b/androidApp/src/main/res/values-nl-rNL/strings.xml index 21b72a2..cf3cb12 100644 --- a/androidApp/src/main/res/values-nl-rNL/strings.xml +++ b/androidApp/src/main/res/values-nl-rNL/strings.xml @@ -1,5 +1,5 @@ - + "Selfoss Reader" "Inloggen" "Wachtwoord" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-pt-rBR/strings.xml b/androidApp/src/main/res/values-pt-rBR/strings.xml index a13d2dd..0f3220b 100644 --- a/androidApp/src/main/res/values-pt-rBR/strings.xml +++ b/androidApp/src/main/res/values-pt-rBR/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "Entrar" "Senha" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-pt-rPT/strings.xml b/androidApp/src/main/res/values-pt-rPT/strings.xml index 84bdc30..b733a0a 100644 --- a/androidApp/src/main/res/values-pt-rPT/strings.xml +++ b/androidApp/src/main/res/values-pt-rPT/strings.xml @@ -1,5 +1,5 @@ - + "Leitor para Selfoss" "Iniciar sessão" "Palavra passe" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-si-rLK/strings.xml b/androidApp/src/main/res/values-si-rLK/strings.xml index a6fcab7..25301c2 100644 --- a/androidApp/src/main/res/values-si-rLK/strings.xml +++ b/androidApp/src/main/res/values-si-rLK/strings.xml @@ -1,5 +1,5 @@ - + "Reader for Selfoss" "පිවිසෙන්න" "මුර පදය" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-tr-rTR/strings.xml b/androidApp/src/main/res/values-tr-rTR/strings.xml index 8cd2816..225f51b 100644 --- a/androidApp/src/main/res/values-tr-rTR/strings.xml +++ b/androidApp/src/main/res/values-tr-rTR/strings.xml @@ -1,5 +1,5 @@ - + "Selfoss için okuyucu" "Giriş" "Şifre" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values-zh-rCN/strings.xml b/androidApp/src/main/res/values-zh-rCN/strings.xml index 9198954..b5da2c2 100644 --- a/androidApp/src/main/res/values-zh-rCN/strings.xml +++ b/androidApp/src/main/res/values-zh-rCN/strings.xml @@ -1,5 +1,5 @@ - + "Selfoss 阅读器" "登录" "密码" @@ -88,8 +88,6 @@ 文章不会被保存到设备内存,应用程序在离线时将无法阅读它们 文章将被保存到设备内存并可在离线时使用 保存项目以便离线使用 - 检查新来源和标签 - 如果你的服务器接收过多的数据库查询,请禁用此功能。 "网络连接丢失" "网络连接现在可用" 同步文章 diff --git a/androidApp/src/main/res/values-zh-rTW/strings.xml b/androidApp/src/main/res/values-zh-rTW/strings.xml index 45c006d..79added 100644 --- a/androidApp/src/main/res/values-zh-rTW/strings.xml +++ b/androidApp/src/main/res/values-zh-rTW/strings.xml @@ -1,5 +1,5 @@ - + "Selfoss 阅读器" "登录" "密码" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml index fc9504e..6943b4f 100644 --- a/androidApp/src/main/res/values/strings.xml +++ b/androidApp/src/main/res/values/strings.xml @@ -1,4 +1,4 @@ - + "Reader for Selfoss" "Log in" "Password" @@ -88,8 +88,6 @@ Articles won\'t be saved to the device memory, and the app won\'t be usable offline. Articles will be saved to the device memory and will be used for offline use. Save items for offline use - Check for new sources and tags - Disable this if your server is receiving excessive amounts of database queries. "Network connection lost" "Network connection is now available" Sync articles diff --git a/androidApp/src/main/res/xml/pref_offline.xml b/androidApp/src/main/res/xml/pref_offline.xml index a5418f4..7a294d4 100644 --- a/androidApp/src/main/res/xml/pref_offline.xml +++ b/androidApp/src/main/res/xml/pref_offline.xml @@ -40,11 +40,4 @@ android:key="notify_new_items" android:dependency="periodic_refresh" android:title="@string/pref_switch_notify_new_items" /> - - diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/service/AppSettingsService.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/service/AppSettingsService.kt index 22da4fa..b65aec7 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/service/AppSettingsService.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/service/AppSettingsService.kt @@ -21,7 +21,6 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) { private var _displayUnreadCount: Boolean? = null private var _displayAllCount: Boolean? = null private var _fullHeightCards: Boolean? = null - private var _updateSources: Boolean? = null private var _periodicRefresh: Boolean? = null private var _refreshWhenChargingOnly: Boolean? = null private var _infiniteLoading: Boolean? = null @@ -223,16 +222,7 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) { } return _fullHeightCards == true } - private fun refreshUpdateSourcesEnabled() { - _updateSources = settings.getBoolean(UPDATE_SOURCES, true) - } - fun isUpdateSourcesEnabled(): Boolean { - if (_updateSources != null) { - refreshUpdateSourcesEnabled() - } - return _updateSources == true - } private fun refreshPeriodicRefreshEnabled() { _periodicRefresh = settings.getBoolean(PERIODIC_REFRESH, false) } @@ -393,7 +383,6 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) { refreshDisplayUnreadCountEnabled() refreshDisplayAllCountEnabled() refreshFullHeightCardsEnabled() - refreshUpdateSourcesEnabled() refreshPeriodicRefreshEnabled() refreshRefreshWhenChargingOnlyEnabled() refreshRefreshMinutes() @@ -492,8 +481,6 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) { const val FULL_HEIGHT_CARDS = "full_height_cards" - const val UPDATE_SOURCES = "update_sources" - const val PERIODIC_REFRESH = "periodic_refresh" const val REFRESH_WHEN_CHARGING = "refresh_when_charging"