diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-18 19:43:19 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-18 19:43:19 +0200 |
commit | e0da4368b57d38a328a53e55a0f019d18dbe55d0 (patch) | |
tree | d2d5a964d82ba5d08036ec228d87e8c9783e8180 | |
parent | 546f71490ca64b8979d3e645af5cc83f3a5d02fa (diff) |
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.
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 2 | ||||
-rw-r--r-- | src/main/res/drawable-hdpi/ic_wear_reply.png | bin | 0 -> 518 bytes | |||
-rw-r--r-- | src/main/res/drawable-mdpi/ic_wear_reply.png | bin | 0 -> 429 bytes | |||
-rw-r--r-- | src/main/res/drawable-xhdpi/ic_wear_reply.png | bin | 0 -> 564 bytes | |||
-rw-r--r-- | src/main/res/drawable-xxhdpi/ic_wear_reply.png | bin | 0 -> 866 bytes |
5 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index e7ae8d3a0..79c6cd2ad 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -363,7 +363,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, mXmppConnectionService.getResources().getString(R.string.reply), createReplyIntent(conversation, false)).addRemoteInput(remoteInput).build(); - NotificationCompat.Action wearReplyAction = new NotificationCompat.Action.Builder(R.drawable.ic_send_text_offline, mXmppConnectionService.getResources().getString(R.string.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 Binary files differnew file mode 100644 index 000000000..2dd2d4e45 --- /dev/null +++ b/src/main/res/drawable-hdpi/ic_wear_reply.png diff --git a/src/main/res/drawable-mdpi/ic_wear_reply.png b/src/main/res/drawable-mdpi/ic_wear_reply.png Binary files differnew file mode 100644 index 000000000..6fa6a03c9 --- /dev/null +++ b/src/main/res/drawable-mdpi/ic_wear_reply.png diff --git a/src/main/res/drawable-xhdpi/ic_wear_reply.png b/src/main/res/drawable-xhdpi/ic_wear_reply.png Binary files differnew file mode 100644 index 000000000..374588867 --- /dev/null +++ b/src/main/res/drawable-xhdpi/ic_wear_reply.png diff --git a/src/main/res/drawable-xxhdpi/ic_wear_reply.png b/src/main/res/drawable-xxhdpi/ic_wear_reply.png Binary files differnew file mode 100644 index 000000000..7126e1863 --- /dev/null +++ b/src/main/res/drawable-xxhdpi/ic_wear_reply.png |