From cf22d6dae8f2961b264ee4d51c6f6b48cfcf4984 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 17 Apr 2020 16:00:58 -0500 Subject: [PATCH] Replace empty space with footer --- .../org/tasks/preferences/fragments/ScrollableWidget.kt | 2 +- app/src/main/java/org/tasks/widget/TasksWidget.java | 2 +- app/src/main/java/org/tasks/widget/WidgetPreferences.java | 4 ++-- app/src/main/res/values-de/strings.xml | 6 +++--- app/src/main/res/values-es/strings.xml | 6 +++--- app/src/main/res/values-fr/strings.xml | 6 +++--- app/src/main/res/values-hu/strings.xml | 6 +++--- app/src/main/res/values-nb/strings.xml | 6 +++--- app/src/main/res/values-nl/strings.xml | 6 +++--- app/src/main/res/values-zh-rCN/strings.xml | 6 +++--- app/src/main/res/values/keys.xml | 6 +++--- app/src/main/res/values/strings.xml | 6 +++--- app/src/main/res/xml/preferences_widget.xml | 4 ++-- 13 files changed, 33 insertions(+), 33 deletions(-) diff --git a/app/src/main/java/org/tasks/preferences/fragments/ScrollableWidget.kt b/app/src/main/java/org/tasks/preferences/fragments/ScrollableWidget.kt index fa8ce6bb1..a3c916622 100644 --- a/app/src/main/java/org/tasks/preferences/fragments/ScrollableWidget.kt +++ b/app/src/main/java/org/tasks/preferences/fragments/ScrollableWidget.kt @@ -80,7 +80,7 @@ class ScrollableWidget : InjectingPreferenceFragment() { val showDescription = setupCheckbox(R.string.p_widget_show_description, true) setupCheckbox(R.string.p_widget_show_full_description, false).dependency = showDescription.key setupList(R.string.p_widget_spacing) - setupList(R.string.p_widget_empty_space_click) + setupList(R.string.p_widget_footer_click) setupList(R.string.p_widget_due_date_position, widgetPreferences.dueDatePosition.toString()) val showHeader = setupCheckbox(R.string.p_widget_show_header) val showSettings = setupCheckbox(R.string.p_widget_show_settings) diff --git a/app/src/main/java/org/tasks/widget/TasksWidget.java b/app/src/main/java/org/tasks/widget/TasksWidget.java index 944bc39c4..30fcd23e5 100644 --- a/app/src/main/java/org/tasks/widget/TasksWidget.java +++ b/app/src/main/java/org/tasks/widget/TasksWidget.java @@ -110,7 +110,7 @@ public class TasksWidget extends InjectingAppWidgetProvider { remoteViews.setOnClickPendingIntent(R.id.widget_change_list, getChooseListIntent(context, filter, id)); remoteViews.setOnClickPendingIntent( R.id.widget_reconfigure, getWidgetConfigIntent(context, id)); - if (widgetPreferences.openOnEmptySpaceClick()) { + if (widgetPreferences.openOnFooterClick()) { remoteViews.setOnClickPendingIntent(R.id.empty_view, getOpenListIntent(context, filter, id)); } else { remoteViews.setOnClickPendingIntent(R.id.empty_view, null); diff --git a/app/src/main/java/org/tasks/widget/WidgetPreferences.java b/app/src/main/java/org/tasks/widget/WidgetPreferences.java index 34c4cdba3..6cb40677a 100644 --- a/app/src/main/java/org/tasks/widget/WidgetPreferences.java +++ b/app/src/main/java/org/tasks/widget/WidgetPreferences.java @@ -102,8 +102,8 @@ public class WidgetPreferences { return getAlphaValue(R.string.p_widget_opacity); } - boolean openOnEmptySpaceClick() { - return getIntegerFromString(R.string.p_widget_empty_space_click, 0) == 1; + boolean openOnFooterClick() { + return getIntegerFromString(R.string.p_widget_footer_click, 0) == 1; } private int getAlphaValue(int resId) { diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 3229367f9..45cf991b9 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -574,10 +574,10 @@ Alles auswählen Teilen Abschließen-Schaltfläche ausblenden - Beim Klicken + Beim Klicken Fußzeilen-Einstellungen Trenner anzeigen - Nichts tun + Nichts tun Transparenz Fußzeile Transparenz Zeile Transparenz Kopfzeile @@ -588,6 +588,6 @@ Ausgeblendet Hinter dem Titel Unter dem Titel - Liste öffnen + Liste öffnen Menü anzeigen \ No newline at end of file diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 24e44bb72..b06846faa 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -582,9 +582,9 @@ Compacto Predefinido Widget ID: %d - Lista abierta - No hagas nada - Al hacer clic + Lista abierta + No hagas nada + Al hacer clic Mostrar el menú Ocultar fondo Oculto diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 9414f9d66..a91c51383 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -578,10 +578,10 @@ Par défaut ID du widget: %d Afficher le menu - Liste ouverte - Ne rien faire + Liste ouverte + Ne rien faire Cacher fond - Sur clic + Sur clic Caché Sous le titre Après le titre diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 77dad5b18..2979f6374 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -584,9 +584,9 @@ Elrejtve Cím alatt Cím után - Lista megnyitása - Nincs művelet - Kattintásra + Lista megnyitása + Nincs művelet + Kattintásra Lábléc beállításai Lábléc átlátszóság Sor átlátszóság diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml index 3bc9f4958..f22d63f83 100644 --- a/app/src/main/res/values-nb/strings.xml +++ b/app/src/main/res/values-nb/strings.xml @@ -545,9 +545,9 @@ Forvalg Miniprograms-ID: %d Fargehjul - Åpne liste - Ikke gjør noe - Ved klikk + Åpne liste + Ikke gjør noe + Ved klikk Forkast endringer Vis meny \ No newline at end of file diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index dcd4f359e..60cbce52c 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -578,9 +578,9 @@ Standaardwaarde Widget ID: %d Toon menu - Open lijst - Doe niets - Als je klikt + Open lijst + Doe niets + Als je klikt Verberg achtergrond Verborgen Onder titel diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index a9b986a69..28d760358 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -574,8 +574,8 @@ 默认 部件ID: %d 显示菜单 - 打开列表 - 什么也不做 - 点击时 + 打开列表 + 什么也不做 + 点击时 隐藏背景 \ No newline at end of file diff --git a/app/src/main/res/values/keys.xml b/app/src/main/res/values/keys.xml index 03ce802ca..caf786325 100644 --- a/app/src/main/res/values/keys.xml +++ b/app/src/main/res/values/keys.xml @@ -123,8 +123,8 @@ - @string/widget_empty_space_do_nothing - @string/widget_empty_space_open_list + @string/widget_do_nothing + @string/widget_open_list @@ -301,7 +301,7 @@ widget-show-menu- widget-header-opacity- widget-empty-space-opacity- - widget-empty-space-click- + widget-empty-space-click- widget-due-date-position- widget-spacing- dashclock_filter diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0b0df62ad..a8040793e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -415,9 +415,9 @@ File %1$s contained %2$s.\n\n Header settings Row settings Footer settings - On click - Do nothing - Open list + On click + Do nothing + Open list After title Below title Hidden diff --git a/app/src/main/res/xml/preferences_widget.xml b/app/src/main/res/xml/preferences_widget.xml index 5a49e4b12..67be6299e 100644 --- a/app/src/main/res/xml/preferences_widget.xml +++ b/app/src/main/res/xml/preferences_widget.xml @@ -128,10 +128,10 @@