From 6aecf7fc5f8adfde35411fc54c3b12597b30e1ba Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sat, 19 Jun 2021 23:38:21 +0200 Subject: [PATCH] fix: use @string resource in welcome_slide4.xml Closes https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/4060 --- app/src/main/res/layout/welcome_slide4.xml | 2 +- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/welcome_slide4.xml b/app/src/main/res/layout/welcome_slide4.xml index 340479afce5f..77b0df8bd71a 100644 --- a/app/src/main/res/layout/welcome_slide4.xml +++ b/app/src/main/res/layout/welcome_slide4.xml @@ -36,7 +36,7 @@ android:layout_marginLeft="@dimen/activity_horizontal_margin" android:layout_marginRight="@dimen/activity_horizontal_margin" android:gravity="center_horizontal" - android:text="A synthesis of the environmental impact of your food." + android:text="@string/welcome_slide_ecoscore_desc" android:textAlignment="center" android:textColor="@android:color/white" android:textSize="@dimen/slide_desc" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ff8cf1570f1c..b938fc65bcd5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -928,4 +928,5 @@ A simple synthesis of the nutritional quality of your food Avoid ultra-processed foods Reduce the amount of ultra-processed foods in your diet. + A synthesis of the environmental impact of your food.