Fix small issue
This commit is contained in:
parent
168633b466
commit
17e57fe86c
|
@ -81,7 +81,7 @@ class SpaceInviteBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetIn
|
||||||
override fun onButtonClicked() {
|
override fun onButtonClicked() {
|
||||||
// quick local echo
|
// quick local echo
|
||||||
views.spaceCard.matrixToCardMainButton.render(ButtonStateView.State.Loading)
|
views.spaceCard.matrixToCardMainButton.render(ButtonStateView.State.Loading)
|
||||||
views.spaceCard.matrixToCardSecondaryButton.button.isEnabled = true
|
views.spaceCard.matrixToCardSecondaryButton.button.isEnabled = false
|
||||||
viewModel.handle(SpaceInviteBottomSheetAction.DoJoin)
|
viewModel.handle(SpaceInviteBottomSheetAction.DoJoin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,8 +89,8 @@ class SpaceInviteBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetIn
|
||||||
}
|
}
|
||||||
views.spaceCard.matrixToCardSecondaryButton.callback = object : ButtonStateView.Callback {
|
views.spaceCard.matrixToCardSecondaryButton.callback = object : ButtonStateView.Callback {
|
||||||
override fun onButtonClicked() {
|
override fun onButtonClicked() {
|
||||||
|
views.spaceCard.matrixToCardMainButton.button.isEnabled = false
|
||||||
views.spaceCard.matrixToCardSecondaryButton.render(ButtonStateView.State.Loading)
|
views.spaceCard.matrixToCardSecondaryButton.render(ButtonStateView.State.Loading)
|
||||||
views.spaceCard.matrixToCardMainButton.button.isEnabled = true
|
|
||||||
viewModel.handle(SpaceInviteBottomSheetAction.DoReject)
|
viewModel.handle(SpaceInviteBottomSheetAction.DoReject)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ class SpaceInviteBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetIn
|
||||||
views.inviterText.isVisible = true
|
views.inviterText.isVisible = true
|
||||||
views.inviterMxid.isVisible = true
|
views.inviterMxid.isVisible = true
|
||||||
avatarRenderer.render(inviter, views.inviterAvatarImage)
|
avatarRenderer.render(inviter, views.inviterAvatarImage)
|
||||||
views.inviterText.text = getString(R.string.user_invites_you, inviter.displayName)
|
views.inviterText.text = getString(R.string.user_invites_you, inviter.getBestName())
|
||||||
views.inviterMxid.text = inviter.id
|
views.inviterMxid.text = inviter.id
|
||||||
} else {
|
} else {
|
||||||
views.inviterAvatarImage.isVisible = false
|
views.inviterAvatarImage.isVisible = false
|
||||||
|
|
Loading…
Reference in New Issue