summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/values/strings.xml33
-rw-r--r--src/com/android/mail/utils/NotificationActionUtils.java7
2 files changed, 39 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b8b919735..b21425ac1 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1073,4 +1073,37 @@
Empty by default since this should be overridden by implementing apps. -->
<string name="full_message_activity" translatable="false"></string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_yes">Yes</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_no">No</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_ok">OK</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_hehe">Hehe</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_thanks">Thanks</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_i_agree">I agree</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_nice">Nice</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_later">I\'ll get back to you later</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_smiling_face">:)</string>
+ <!-- One of the default canned responses used when replying to an email on a wearable device [CHAR LIMIT=30] -->
+ <string name="reply_choice_frowning_face">:(</string>
+
+ <array name="reply_choices">
+ <item>@string/reply_choice_yes</item>
+ <item>@string/reply_choice_no</item>
+ <item>@string/reply_choice_ok</item>
+ <item>@string/reply_choice_hehe</item>
+ <item>@string/reply_choice_thanks</item>
+ <item>@string/reply_choice_i_agree</item>
+ <item>@string/reply_choice_nice</item>
+ <item>@string/reply_choice_later</item>
+ <item>@string/reply_choice_smiling_face</item>
+ <item>@string/reply_choice_frowning_face</item>
+ </array>
</resources>
diff --git a/src/com/android/mail/utils/NotificationActionUtils.java b/src/com/android/mail/utils/NotificationActionUtils.java
index 089b9f57b..c22dcf994 100644
--- a/src/com/android/mail/utils/NotificationActionUtils.java
+++ b/src/com/android/mail/utils/NotificationActionUtils.java
@@ -222,8 +222,13 @@ public class NotificationActionUtils {
actionIconResId, title, pendingIntent);
if (notificationAction == NotificationActionType.REPLY
|| notificationAction == NotificationActionType.REPLY_ALL) {
+ String[] choices = context.getResources().getStringArray(R.array.reply_choices);
wearableActionBuilder.addRemoteInput(
- new RemoteInput.Builder(WEAR_REPLY_INPUT).setLabel(title).build());
+ new RemoteInput.Builder(WEAR_REPLY_INPUT)
+ .setLabel(title)
+ .setChoices(choices)
+ .build()
+ );
LogUtils.d(LOG_TAG, "Adding wearable action!!");
}