From d6f751bb6671b0147bf5f8b04d9ff0747d8e0a07 Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Thu, 29 Mar 2018 19:36:03 -0400 Subject: [PATCH] Use full list of QK Responses --- .../java/common/util/NotificationManagerImpl.kt | 2 +- presentation/src/main/res/values/strings.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/presentation/src/main/java/common/util/NotificationManagerImpl.kt b/presentation/src/main/java/common/util/NotificationManagerImpl.kt index 4320a8c7..dda4e5cd 100644 --- a/presentation/src/main/java/common/util/NotificationManagerImpl.kt +++ b/presentation/src/main/java/common/util/NotificationManagerImpl.kt @@ -184,7 +184,7 @@ class NotificationManagerImpl @Inject constructor( .putExtra("threadId", threadId) val replyPI = PendingIntent.getBroadcast(context, threadId.toInt() + 40000, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) - val responseSet = arrayListOf("Hello", "Hey").toTypedArray().sortedArray() + val responseSet = context.resources.getStringArray(R.array.qk_responses) val remoteInput = RemoteInput.Builder("body") .setLabel(context.getString(R.string.notification_reply)) .setChoices(responseSet) diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index 8c79ac28..a6d34c39 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -202,4 +202,19 @@ 0 + + Okay + Give me a moment + On my way + Thanks + Sounds good + What\'s up? + Agreed + No + Love you + Sorry + LOL + That\'s okay + +