mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
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.
This commit is contained in:
parent
6c34763d32
commit
a4454bcff2
@ -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);
|
||||
|
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