From 3f87565cc46ca68a6c9c38154d09416f30c766a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 26 Apr 2023 15:55:14 -0400
Subject: [PATCH] preferences: add specific description for UnifiedPush

Change-Id: Ib22affcc20fefb568e409e826f7aa2980cb5062c
---
 jami-android/app/src/main/res/layout/frag_settings.xml      | 2 +-
 .../app/src/main/res/values/strings_preferences.xml         | 2 ++
 .../app/src/withFirebase/res/values/strings_preferences.xml | 6 ++++++
 .../src/withUnifiedPush/res/values/strings_preferences.xml  | 6 ++++++
 4 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 jami-android/app/src/withFirebase/res/values/strings_preferences.xml
 create mode 100644 jami-android/app/src/withUnifiedPush/res/values/strings_preferences.xml

diff --git a/jami-android/app/src/main/res/layout/frag_settings.xml b/jami-android/app/src/main/res/layout/frag_settings.xml
index 693a45294..e244bce3b 100644
--- a/jami-android/app/src/main/res/layout/frag_settings.xml
+++ b/jami-android/app/src/main/res/layout/frag_settings.xml
@@ -560,7 +560,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                         style="@style/ListSecondary"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
-                        android:text="@string/pref_pushNotifications_summary" />
+                        android:text="@string/pref_pushNotif_summary" />
 
                 </LinearLayout>
 
diff --git a/jami-android/app/src/main/res/values/strings_preferences.xml b/jami-android/app/src/main/res/values/strings_preferences.xml
index d5bf474f3..84fa85b0e 100644
--- a/jami-android/app/src/main/res/values/strings_preferences.xml
+++ b/jami-android/app/src/main/res/values/strings_preferences.xml
@@ -11,7 +11,9 @@
     <string name="pref_mobileData_summary">Allow Jami on 3G/LTE networks additionally to Wi-Fi</string>
 
     <string name="pref_pushNotifications_title">Push notifications</string>
+    <string name="pref_pushNotif_summary" translatable="false" />
     <string name="pref_pushNotifications_summary">Use Google servers to allow receiving calls/messages in the background</string>
+    <string name="pref_unifiedPush_summary">Use a UnifiedPush service to allow receiving calls/messages in the background</string>
 
     <string name="pref_video_advanced_title">Advanced video settings</string>
     <string name="pref_video_advanced_summary">Change the video bitrate, resolution, as well as access experimental features</string>
diff --git a/jami-android/app/src/withFirebase/res/values/strings_preferences.xml b/jami-android/app/src/withFirebase/res/values/strings_preferences.xml
new file mode 100644
index 000000000..25260d04c
--- /dev/null
+++ b/jami-android/app/src/withFirebase/res/values/strings_preferences.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="pref_pushNotif_summary" translatable="false">@string/pref_pushNotifications_summary</string>
+
+</resources>
\ No newline at end of file
diff --git a/jami-android/app/src/withUnifiedPush/res/values/strings_preferences.xml b/jami-android/app/src/withUnifiedPush/res/values/strings_preferences.xml
new file mode 100644
index 000000000..5eb698912
--- /dev/null
+++ b/jami-android/app/src/withUnifiedPush/res/values/strings_preferences.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="pref_pushNotif_summary" translatable="false">@string/pref_unifiedPush_summary</string>
+
+</resources>
\ No newline at end of file
-- 
GitLab