mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Merge pull request #2448 from morgenroth/Android-wear-action-icons
Add reply button in wear design
This commit is contained in:
commit
d86a4642e9
@ -352,7 +352,7 @@ public class NotificationService {
|
|||||||
}
|
}
|
||||||
RemoteInput remoteInput = new RemoteInput.Builder("text_reply").setLabel(UIHelper.getMessageHint(mXmppConnectionService, conversation)).build();
|
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 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));
|
mBuilder.extend(new NotificationCompat.WearableExtender().addAction(wearReplyAction));
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
mBuilder.addAction(replyAction);
|
mBuilder.addAction(replyAction);
|
||||||
|
BIN
src/main/res/drawable-hdpi/ic_wear_reply.png
Normal file
BIN
src/main/res/drawable-hdpi/ic_wear_reply.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 518 B |
BIN
src/main/res/drawable-mdpi/ic_wear_reply.png
Normal file
BIN
src/main/res/drawable-mdpi/ic_wear_reply.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 429 B |
BIN
src/main/res/drawable-xhdpi/ic_wear_reply.png
Normal file
BIN
src/main/res/drawable-xhdpi/ic_wear_reply.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 564 B |
BIN
src/main/res/drawable-xxhdpi/ic_wear_reply.png
Normal file
BIN
src/main/res/drawable-xxhdpi/ic_wear_reply.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 866 B |
Loading…
Reference in New Issue
Block a user