Outlined icons for conversation input panel.

This commit is contained in:
Anton Chekulaev
2020-09-01 19:22:30 +10:00
parent ecd2dd8ef3
commit 0992ad4e5b
8 changed files with 43 additions and 18 deletions

View File

@@ -46,11 +46,11 @@ public class EmojiToggle extends AppCompatImageButton implements MediaKeyboard.M
}
private void initialize() {
int attributes[] = new int[] {R.attr.conversation_emoji_toggle,
R.attr.conversation_sticker_toggle,
R.attr.conversation_keyboard_toggle};
TypedArray drawables = getContext().obtainStyledAttributes(new int[] {
R.attr.conversation_emoji_toggle,
R.attr.conversation_sticker_toggle,
R.attr.conversation_keyboard_toggle});
TypedArray drawables = getContext().obtainStyledAttributes(attributes);
this.emojiToggle = drawables.getDrawable(0);
this.stickerToggle = drawables.getDrawable(1);
this.imeToggle = drawables.getDrawable(2);