mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-30 10:40:37 +00:00
open profile from avatar in menu
This commit is contained in:
parent
57f748de77
commit
0e0505de17
1 changed files with 4 additions and 0 deletions
|
|
@ -333,6 +333,10 @@ class NavigationDrawerFragment : DialogFragment() {
|
|||
}
|
||||
|
||||
private fun updateUser(user: User) {
|
||||
binding?.avatarView?.setOnClickListener {
|
||||
MainNavigationController.navigate(R.id.openProfileActivity, bundleOf(Pair("userID", user.id)))
|
||||
}
|
||||
|
||||
setMessagesCount(user.inbox)
|
||||
setSettingsCount(if (user.flags?.verifiedUsername != true) 1 else 0)
|
||||
setDisplayName(user.profile?.name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue