Merge pull request #5042 from vector-im/feature/bma/small_issues
Small layout issues
This commit is contained in:
commit
2f67c13cda
@ -159,9 +159,6 @@ Formatter\.formatShortFileSize===1
|
||||
# DISABLED
|
||||
# android\.text\.TextUtils
|
||||
|
||||
### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If the enum is not used as a Json class, change the value in file forbidden_strings_in_code.txt
|
||||
enum class===121
|
||||
|
||||
### Do not import temporary legacy classes
|
||||
import org.matrix.android.sdk.internal.legacy.riot===3
|
||||
import org.matrix.androidsdk.crypto.data===2
|
||||
|
@ -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,11 +38,11 @@ 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)
|
||||
else -> rejectView.render(ButtonStateView.State.Button)
|
||||
when (changeMembershipState) {
|
||||
is ChangeMembershipState.FailedLeaving -> rejectView.render(ButtonStateView.State.Error)
|
||||
else -> rejectView.render(ButtonStateView.State.Button)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -59,38 +59,39 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/inviteIdentifierView" />
|
||||
|
||||
<androidx.constraintlayout.helper.widget.Flow
|
||||
android:id="@+id/actionsFlow"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
app:constraint_referenced_ids="inviteRejectView,inviteAcceptView"
|
||||
app:flow_horizontalGap="4dp"
|
||||
app:flow_horizontalStyle="packed"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/inviteLabelView" />
|
||||
|
||||
<im.vector.app.core.platform.ButtonStateView
|
||||
android:id="@+id/inviteAcceptView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:minWidth="120dp"
|
||||
app:bsv_button_text="@string/action_accept"
|
||||
app:bsv_loaded_image_src="@drawable/ic_tick"
|
||||
app:bsv_use_flat_button="false"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toEndOf="@id/inviteRejectView"
|
||||
app:layout_constraintTop_toTopOf="@id/inviteRejectView" />
|
||||
app:bsv_use_flat_button="false" />
|
||||
|
||||
<im.vector.app.core.platform.ButtonStateView
|
||||
android:id="@+id/inviteRejectView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:minWidth="120dp"
|
||||
app:bsv_button_text="@string/action_reject"
|
||||
app:bsv_loaded_image_src="@drawable/ic_tick"
|
||||
app:bsv_use_flat_button="true"
|
||||
app:layout_constraintEnd_toStartOf="@id/inviteAcceptView"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/inviteLabelView" />
|
||||
app:bsv_use_flat_button="true" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="16dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/inviteAcceptView" />
|
||||
app:layout_constraintTop_toBottomOf="@id/actionsFlow" />
|
||||
|
||||
</merge>
|
||||
|
Loading…
x
Reference in New Issue
Block a user