Naming convention
This commit is contained in:
parent
8cc12fb8d4
commit
562c6fbcce
@ -43,13 +43,13 @@ class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun initTextViews() {
|
private fun initTextViews() {
|
||||||
loginServerChoiceEMSLearnMore.text = span {
|
loginServerChoiceEmsLearnMore.text = span {
|
||||||
text = getString(R.string.login_server_modular_learn_more)
|
text = getString(R.string.login_server_modular_learn_more)
|
||||||
textDecorationLine = "underline"
|
textDecorationLine = "underline"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnClick(R.id.loginServerChoiceEMSLearnMore)
|
@OnClick(R.id.loginServerChoiceEmsLearnMore)
|
||||||
fun learnMore() {
|
fun learnMore() {
|
||||||
openUrlInChromeCustomTab(requireActivity(), null, EMS_LINK)
|
openUrlInChromeCustomTab(requireActivity(), null, EMS_LINK)
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment
|
|||||||
loginViewModel.handle(LoginAction.UpdateServerType(ServerType.MatrixOrg))
|
loginViewModel.handle(LoginAction.UpdateServerType(ServerType.MatrixOrg))
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnClick(R.id.loginServerChoiceEMS)
|
@OnClick(R.id.loginServerChoiceEms)
|
||||||
fun selectEMS() {
|
fun selectEMS() {
|
||||||
loginViewModel.handle(LoginAction.UpdateServerType(ServerType.EMS))
|
loginViewModel.handle(LoginAction.UpdateServerType(ServerType.EMS))
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</im.vector.riotx.core.platform.CheckableConstraintLayout>
|
</im.vector.riotx.core.platform.CheckableConstraintLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/loginServerChoiceEMS"
|
android:id="@+id/loginServerChoiceEms"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/layout_vertical_margin"
|
android:layout_marginTop="@dimen/layout_vertical_margin"
|
||||||
@ -95,19 +95,19 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceMatrixOrg">
|
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceMatrixOrg">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/loginServerChoiceEMSIcon"
|
android:id="@+id/loginServerChoiceEmsIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
android:src="@drawable/ic_logo_element_matrix_services"
|
android:src="@drawable/ic_logo_element_matrix_services"
|
||||||
android:tint="?riotx_text_primary"
|
android:tint="?riotx_text_primary"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/loginServerChoiceEMSText"
|
app:layout_constraintBottom_toTopOf="@+id/loginServerChoiceEmsText"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_chainStyle="packed" />
|
app:layout_constraintVertical_chainStyle="packed" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/loginServerChoiceEMSText"
|
android:id="@+id/loginServerChoiceEmsText"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="7dp"
|
android:layout_marginTop="7dp"
|
||||||
@ -115,21 +115,21 @@
|
|||||||
android:text="@string/login_server_modular_text"
|
android:text="@string/login_server_modular_text"
|
||||||
android:textAppearance="@style/TextAppearance.Vector.Login.Text.Small"
|
android:textAppearance="@style/TextAppearance.Vector.Login.Text.Small"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/loginServerChoiceEMSLearnMore"
|
app:layout_constraintEnd_toStartOf="@+id/loginServerChoiceEmsLearnMore"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceEMSIcon" />
|
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceEmsIcon" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/loginServerChoiceEMSLearnMore"
|
android:id="@+id/loginServerChoiceEmsLearnMore"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="16dp"
|
android:padding="16dp"
|
||||||
android:text="@string/login_server_modular_learn_more"
|
android:text="@string/login_server_modular_learn_more"
|
||||||
android:textAppearance="@style/TextAppearance.Vector.Login.Text.Small"
|
android:textAppearance="@style/TextAppearance.Vector.Login.Text.Small"
|
||||||
android:textColor="@color/riotx_accent"
|
android:textColor="@color/riotx_accent"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/loginServerChoiceEMSText"
|
app:layout_constraintBottom_toBottomOf="@+id/loginServerChoiceEmsText"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="@+id/loginServerChoiceEMSText" />
|
app:layout_constraintTop_toTopOf="@+id/loginServerChoiceEmsText" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@ -145,7 +145,7 @@
|
|||||||
android:paddingEnd="@dimen/layout_horizontal_margin"
|
android:paddingEnd="@dimen/layout_horizontal_margin"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceEMS">
|
app:layout_constraintTop_toBottomOf="@+id/loginServerChoiceEms">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/loginServerChoiceOtherTitle"
|
android:id="@+id/loginServerChoiceOtherTitle"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user