mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-31 01:01:37 +01:00
Add some icons to drawer
(cherry picked from commit 4a8b1982c207c981162dd03f137470f952294168)
This commit is contained in:
parent
c13706b60d
commit
30a61fa571
1 changed files with 3 additions and 1 deletions
|
@ -344,15 +344,17 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
||||||
final var allChats = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
final var allChats = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
||||||
allChats.setIdentifier(DRAWER_ALL_CHATS);
|
allChats.setIdentifier(DRAWER_ALL_CHATS);
|
||||||
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(allChats, "All Chats");
|
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(allChats, "All Chats");
|
||||||
|
com.mikepenz.materialdrawer.model.interfaces.IconableKt.setIconRes(allChats, R.drawable.ic_chat_24dp);
|
||||||
|
|
||||||
final var directMessages = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
final var directMessages = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
||||||
directMessages.setIdentifier(DRAWER_DIRECT_MESSAGES);
|
directMessages.setIdentifier(DRAWER_DIRECT_MESSAGES);
|
||||||
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(directMessages, "Direct Messages");
|
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(directMessages, "Direct Messages");
|
||||||
|
com.mikepenz.materialdrawer.model.interfaces.IconableKt.setIconRes(directMessages, R.drawable.ic_person_24dp);
|
||||||
|
|
||||||
final var channels = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
final var channels = new com.mikepenz.materialdrawer.model.PrimaryDrawerItem();
|
||||||
channels.setIdentifier(DRAWER_CHANNELS);
|
channels.setIdentifier(DRAWER_CHANNELS);
|
||||||
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(channels, "Channels");
|
com.mikepenz.materialdrawer.model.interfaces.NameableKt.setNameText(channels, "Channels");
|
||||||
|
com.mikepenz.materialdrawer.model.interfaces.IconableKt.setIconRes(channels, R.drawable.ic_group_24dp);
|
||||||
|
|
||||||
binding.drawer.getItemAdapter().add(
|
binding.drawer.getItemAdapter().add(
|
||||||
allChats,
|
allChats,
|
||||||
|
|
Loading…
Add table
Reference in a new issue