From a4454bcff2493160ecabbb2fdfe75f58a04660c1 Mon Sep 17 00:00:00 2001 From: Johannes Morgenroth Date: Mon, 17 Apr 2017 12:13:26 +0200 Subject: [PATCH] Add reply button in wear design The existing reply button for Android wear has been re-used from the action bar. Instead of a 'send' icon, a 'reply' icon better matches the intended action. Moreover, action icons for Android wear are solid white instead of half transparent. --- .../services/NotificationService.java | 2 +- src/main/res/drawable-hdpi/ic_wear_reply.png | Bin 0 -> 518 bytes src/main/res/drawable-mdpi/ic_wear_reply.png | Bin 0 -> 429 bytes src/main/res/drawable-xhdpi/ic_wear_reply.png | Bin 0 -> 564 bytes src/main/res/drawable-xxhdpi/ic_wear_reply.png | Bin 0 -> 866 bytes 5 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/main/res/drawable-hdpi/ic_wear_reply.png create mode 100644 src/main/res/drawable-mdpi/ic_wear_reply.png create mode 100644 src/main/res/drawable-xhdpi/ic_wear_reply.png create mode 100644 src/main/res/drawable-xxhdpi/ic_wear_reply.png diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index eb5362ea..5a33e82e 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -352,7 +352,7 @@ public class NotificationService { } RemoteInput remoteInput = new RemoteInput.Builder("text_reply").setLabel(UIHelper.getMessageHint(mXmppConnectionService, conversation)).build(); NotificationCompat.Action replyAction = new NotificationCompat.Action.Builder(R.drawable.ic_send_text_offline, "Reply", createReplyIntent(conversation, false)).addRemoteInput(remoteInput).build(); - NotificationCompat.Action wearReplyAction = new NotificationCompat.Action.Builder(R.drawable.ic_send_text_offline, "Reply", createReplyIntent(conversation, true)).addRemoteInput(remoteInput).build(); + NotificationCompat.Action wearReplyAction = new NotificationCompat.Action.Builder(R.drawable.ic_wear_reply, "Reply", createReplyIntent(conversation, true)).addRemoteInput(remoteInput).build(); mBuilder.extend(new NotificationCompat.WearableExtender().addAction(wearReplyAction)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { mBuilder.addAction(replyAction); diff --git a/src/main/res/drawable-hdpi/ic_wear_reply.png b/src/main/res/drawable-hdpi/ic_wear_reply.png new file mode 100644 index 0000000000000000000000000000000000000000..2dd2d4e45a1c401ae20a82872ae829280fd2bef6 GIT binary patch literal 518 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA0wn)(8}a}tmUKs7M+SzC{oH>NS%G|oWRD45dJguM!v-tY$DUh!@P+6=(yLU`q0KcVYP7-hXC4kjGx) z>Fdh=kVTM-L&!?5OPhg#kfk~)2}-m@e1=0bP)==!FkB+8K+Z1 z_CY5B9Up0x*7I+yYsB8|`agT;;d@SVF7xs{-~Iet!Ft2ExHx_#CNrCCrf&xV*8j3y z!I<|gtKm!>bHEB9-Wbj>~pT172I4$k|qUK<>imUEDZ{iP$3f^Lh30CI2hI2Q zHcVy-@C}qMa#1loaz)lKXXoc|;NZjm`gb_^90nVGhgCC@B>;LRf-D*SmlmqD9k4UEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10f+@+{-G$+Qd;gjJKpuOE zr>`sfLl!|U4k0VKE^VODR!i@oW*0`;4~p2a%WQuOLJaO z_k-IT*)OJ6=5C*SP2tSYT&I!p(wzK@xKx zJytbZn8(_F#iRCn@Ua4}wkLZ&Y}|i9s$r^|;7^~32a`lP4EopIIAS3Bsf644OC^K8 zdn6BY^~SG252%*7MwFx^mZVxG7o`Fz1|tJQb6o=yT|@H_LnA8#V=F@gZ37^~;7>qB f0g8s){FKbJO57THc@LZcYGCkm^>bP0l+XkK(e{+? literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-xhdpi/ic_wear_reply.png b/src/main/res/drawable-xhdpi/ic_wear_reply.png new file mode 100644 index 0000000000000000000000000000000000000000..374588867db053ad7bac7662dfea860ab738acfd GIT binary patch literal 564 zcmeAS@N?(olHy`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