Hide the button to make the loading wheel centered

This commit is contained in:
Benoit Marty 2022-01-24 18:49:20 +01:00
parent 3a8c788657
commit 6c560679a5
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
package im.vector.app.features.invite
import androidx.core.view.isInvisible
import androidx.core.view.isGone
import im.vector.app.core.platform.ButtonStateView
import org.matrix.android.sdk.api.session.room.members.ChangeMembershipState
@ -38,7 +38,7 @@ object InviteButtonStateBinder {
}
// ButtonStateView.State.Loaded not used because roomSummary will not be displayed as a room invitation anymore
rejectView.isInvisible = requestInProgress
rejectView.isGone = requestInProgress
when {
changeMembershipState is ChangeMembershipState.FailedLeaving -> rejectView.render(ButtonStateView.State.Error)