Fix UI and cancel click for Re-Register
This commit is contained in:
parent
28c280947f
commit
0e49f1a98c
3 changed files with 6 additions and 5 deletions
|
@ -106,6 +106,7 @@ class EnterPhoneNumberFragment : LoggingFragment(R.layout.fragment_registration_
|
|||
fragmentViewModel.supportedCountryPrefixes
|
||||
)
|
||||
binding.registerButton.setOnClickListener { onRegistrationButtonClicked() }
|
||||
binding.cancelButton.setOnClickListener { popBackStack() }
|
||||
|
||||
binding.toolbar.title = ""
|
||||
val activity = requireActivity() as AppCompatActivity
|
||||
|
|
|
@ -111,6 +111,7 @@ class EnterPhoneNumberFragment : LoggingFragment(R.layout.fragment_registration_
|
|||
fragmentViewModel.supportedCountryPrefixes
|
||||
)
|
||||
binding.registerButton.setOnClickListener { onRegistrationButtonClicked() }
|
||||
binding.cancelButton.setOnClickListener { popBackStack() }
|
||||
|
||||
binding.toolbar.title = ""
|
||||
val activity = requireActivity() as AppCompatActivity
|
||||
|
|
|
@ -110,23 +110,22 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:text="@android:string/cancel"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/registerButton"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton
|
||||
android:id="@+id/registerButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
app:circularProgressMaterialButton__label="@string/RegistrationActivity_continue"
|
||||
app:layout_constraintBottom_toTopOf="@+id/cancel_button"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Signal.CircularProgressIndicator.Tonal" />
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue