mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Hide the button to make the loading wheel centered
This commit is contained in:
parent
3a8c788657
commit
6c560679a5
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
package im.vector.app.features.invite
|
package im.vector.app.features.invite
|
||||||
|
|
||||||
import androidx.core.view.isInvisible
|
import androidx.core.view.isGone
|
||||||
import im.vector.app.core.platform.ButtonStateView
|
import im.vector.app.core.platform.ButtonStateView
|
||||||
import org.matrix.android.sdk.api.session.room.members.ChangeMembershipState
|
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
|
// ButtonStateView.State.Loaded not used because roomSummary will not be displayed as a room invitation anymore
|
||||||
|
|
||||||
rejectView.isInvisible = requestInProgress
|
rejectView.isGone = requestInProgress
|
||||||
|
|
||||||
when {
|
when {
|
||||||
changeMembershipState is ChangeMembershipState.FailedLeaving -> rejectView.render(ButtonStateView.State.Error)
|
changeMembershipState is ChangeMembershipState.FailedLeaving -> rejectView.render(ButtonStateView.State.Error)
|
||||||
|
|
Loading…
Reference in a new issue