From 51946da742786d0faadc7b94c7694618bac0c939 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Mon, 1 Jun 2020 08:47:28 -0500 Subject: [PATCH] Change 'Disable subtasks' to 'Improve performance' --- .../main/java/org/tasks/preferences/fragments/Advanced.kt | 8 ++++++++ .../java/org/tasks/preferences/fragments/LookAndFeel.kt | 6 ------ app/src/main/res/values-de/strings.xml | 2 -- app/src/main/res/values-es/strings.xml | 2 -- app/src/main/res/values-eu/strings.xml | 2 -- app/src/main/res/values-fi/strings.xml | 2 -- app/src/main/res/values-fr/strings.xml | 2 -- app/src/main/res/values-hu/strings.xml | 2 -- app/src/main/res/values-iw/strings.xml | 2 -- app/src/main/res/values-nl/strings.xml | 2 -- app/src/main/res/values-pl/strings.xml | 2 -- app/src/main/res/values-ru/strings.xml | 2 -- app/src/main/res/values-tr/strings.xml | 2 -- app/src/main/res/values-zh-rCN/strings.xml | 2 -- app/src/main/res/values/strings.xml | 4 ++-- app/src/main/res/xml/preferences_advanced.xml | 6 ++++++ app/src/main/res/xml/preferences_look_and_feel.xml | 6 ------ 17 files changed, 16 insertions(+), 38 deletions(-) diff --git a/app/src/main/java/org/tasks/preferences/fragments/Advanced.kt b/app/src/main/java/org/tasks/preferences/fragments/Advanced.kt index 85db53ccc..6781c25ba 100644 --- a/app/src/main/java/org/tasks/preferences/fragments/Advanced.kt +++ b/app/src/main/java/org/tasks/preferences/fragments/Advanced.kt @@ -13,6 +13,7 @@ import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.CompositeDisposable import io.reactivex.schedulers.Schedulers +import org.tasks.LocalBroadcastManager import org.tasks.PermissionUtil import org.tasks.R import org.tasks.calendars.CalendarEventProvider @@ -41,6 +42,7 @@ class Advanced : InjectingPreferenceFragment() { @Inject lateinit var toaster: Toaster @Inject lateinit var permissionRequester: FragmentPermissionRequestor @Inject lateinit var permissionChecker: PermissionChecker + @Inject lateinit var localBroadcastManager: LocalBroadcastManager private lateinit var disposables: CompositeDisposable private lateinit var calendarReminderPreference: SwitchPreferenceCompat @@ -48,6 +50,12 @@ class Advanced : InjectingPreferenceFragment() { override fun getPreferenceXml() = R.xml.preferences_advanced override fun setupPreferences(savedInstanceState: Bundle?) { + findPreference(R.string.p_disable_subtasks) + .setOnPreferenceChangeListener { _: Preference?, _: Any? -> + localBroadcastManager.broadcastRefresh() + true + } + findPreference(R.string.EPr_manage_purge_deleted) .setOnPreferenceClickListener { purgeDeletedTasks() diff --git a/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt b/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt index 3e1425141..33a0545e5 100644 --- a/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt +++ b/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt @@ -70,12 +70,6 @@ class LookAndFeel : InjectingPreferenceFragment() { override fun getPreferenceXml() = R.xml.preferences_look_and_feel override fun setupPreferences(savedInstanceState: Bundle?) { - findPreference(R.string.p_disable_subtasks) - .setOnPreferenceChangeListener { _: Preference?, _: Any? -> - localBroadcastManager.broadcastRefresh() - true - } - val themePref = findPreference(R.string.p_theme) val themeNames = resources.getStringArray(R.array.base_theme_names) themePref.summary = themeNames[themeBase.index] diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 0e916fe7e..192005c00 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -606,10 +606,8 @@ Nach Erstellungszeit "Nach heute " Überfällig - Unteraufgaben deaktivieren Schlagwörter hinzufügen Keine Schlagwörter - Teilaufgaben zu deaktivieren kann die App-Performance verbessern Beliebiges Fälligkeitsdatum Gefällt Ihnen Tasks\? Änderungen in Version %s diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index e0cabb28d..88d55210f 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -616,8 +616,6 @@ Hoy sólo Atrasado En el momento de la creación - La desactivación de subtareas puede mejorar el rendimiento de la aplicación - Desactivar subtareas ¡Entendido! No gracias Desbloquea características adicionales y soporta software de código abierto diff --git a/app/src/main/res/values-eu/strings.xml b/app/src/main/res/values-eu/strings.xml index 503d7a6b0..2d3971da6 100644 --- a/app/src/main/res/values-eu/strings.xml +++ b/app/src/main/res/values-eu/strings.xml @@ -602,8 +602,6 @@ Zereginaren edizioa Itxi automatikoki zereginen zerrendatik hautatzean Zereginen zerrenda - Azpi-zereginak desgaitzeak aplikazioaren errendimendua hobetu dezake - Desgaitu azpi-zereginak Ezkutatuta Izenburuaren azpian Izenburua eta gero diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 424c62b78..a68567ab0 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -600,8 +600,6 @@ Puettavan laitteen ilmoitukset Kehittyneet Vaatii palveluntuottajan tai itsehallinnoidun CalDAV tilin. Tutustu palveluntarjoajiin osoitteessa tasks.org/caldav - Alatehtävien poisto käytöstä voi parantaa ohjelman suorituskykyä - Poista alatehtävät käytöstä Päivitykset Lähdit paikasta %s Saavuit paikkaan %s diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 49fa0f1ea..5c371f13a 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -611,8 +611,6 @@ Aujourd\'hui seulement En retard Par date de création - La désactivation des sous-tâches peut améliorer les performances de l\'application - Désactiver les sous-tâches J\'ai compris ! Non, merci Déverrouillez des fonctionnalités supplémentaires et supportez les logiciels open source diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 4a9ace6aa..f21e11c95 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -614,8 +614,6 @@ Csak ma Határidőn túli Létrehozás ideje alapján - A részfeladatok letiltása növelheti az app sebességét - Részfeladatok letiltása Megértettem! Köszönöm, nem További finkciók feloldása és a nyílt szoftver támogatása diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index d4478451d..c0e5879ae 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -539,8 +539,6 @@ מעט אחר - ביטול תתי משימות עשוי לשפר ביצועים - ביטול תתי משימות הזן כותרת כיווץ תתי משימות הרחבת תתי משימות diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 0470ff7ed..863774501 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -611,8 +611,6 @@ Alleen vandaag Te laat Op aanmaaktijd - Het uitschakelen van deeltaken kan de snelheid van de app verbeteren - Deeltaken uitschakelen Ontgrendel extra mogelijkheden en ondersteun open source software Begrepen! Nieuws diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 4ae710c11..ac5af40c3 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -626,8 +626,6 @@ LUB ORAZ Kryteria filtrowania - Wyłączenie podzadań może zwiększyć wydajność aplikacji - Wyłącz podzadania Wg. czasu stworzenia Rozumiem! Nie, dziękuję diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 47bafa2b8..a177e2d36 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -632,8 +632,6 @@ ИЛИ И Критерии фильтрации - Отключение подзадач может повысить производительность приложения - Отключить подзадачи По времени создания Понятно! Нет, спасибо diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 50b0510b1..658a0a2d9 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -616,8 +616,6 @@ VE Süzme ölçütü Oluşturulma zamanına göre - Alt görevleri devre dışı bırakmak uygulama performansını iyileştirebilir - Alt görevleri devre dışı bırak Lütfen nasıl yaptığımı anlat Anladım! Teşekkürler diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index de0e82c91..9adf15b54 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -606,8 +606,6 @@ 任何到期日 仅今日 到期 - 禁用子任务可能改善应用性能 - 禁用子任务 按创建时间 知道了! 不,谢谢 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 54cc0e4e3..36ea060b6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -540,8 +540,8 @@ File %1$s contained %2$s.\n\n Collapse subtasks Multi-level subtasks not supported by Google Tasks Enter title - Disable subtasks - Disabling subtasks may improve app performance + Improve performance + Disable sort groups and collapsible subtasks to improve app performance Enter tag name Create \"%s\" Select a platform diff --git a/app/src/main/res/xml/preferences_advanced.xml b/app/src/main/res/xml/preferences_advanced.xml index 2397a7b66..0a5cd51c1 100644 --- a/app/src/main/res/xml/preferences_advanced.xml +++ b/app/src/main/res/xml/preferences_advanced.xml @@ -2,6 +2,12 @@ + + - -