mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-20 20:58:54 +01:00
Use full list of QK Responses
This commit is contained in:
@@ -184,7 +184,7 @@ class NotificationManagerImpl @Inject constructor(
|
|||||||
.putExtra("threadId", threadId)
|
.putExtra("threadId", threadId)
|
||||||
val replyPI = PendingIntent.getBroadcast(context, threadId.toInt() + 40000, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
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")
|
val remoteInput = RemoteInput.Builder("body")
|
||||||
.setLabel(context.getString(R.string.notification_reply))
|
.setLabel(context.getString(R.string.notification_reply))
|
||||||
.setChoices(responseSet)
|
.setChoices(responseSet)
|
||||||
|
|||||||
@@ -202,4 +202,19 @@
|
|||||||
<item>0</item>
|
<item>0</item>
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
|
<string-array name="qk_responses">
|
||||||
|
<item>Okay</item>
|
||||||
|
<item>Give me a moment</item>
|
||||||
|
<item>On my way</item>
|
||||||
|
<item>Thanks</item>
|
||||||
|
<item>Sounds good</item>
|
||||||
|
<item>What\'s up?</item>
|
||||||
|
<item>Agreed</item>
|
||||||
|
<item>No</item>
|
||||||
|
<item>Love you</item>
|
||||||
|
<item>Sorry</item>
|
||||||
|
<item>LOL</item>
|
||||||
|
<item>That\'s okay</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user