Skip to content

Commit

Permalink
fix: more screen issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Oct 3, 2024
1 parent 11dca2a commit f823700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/src/de/schildbach/wallet/ui/more/MoreFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,23 @@ class MoreFragment : Fragment(R.layout.fragment_more) {

mainActivityViewModel.blockchainIdentityDataDao.observeBase().observe(viewLifecycleOwner) {
if (!it.restoring && it.creationState.ordinal > BlockchainIdentityData.CreationState.NONE.ordinal &&
it.creationState.ordinal < BlockchainIdentityData.CreationState.VOTING.ordinal //&&
it.creationState.ordinal < BlockchainIdentityData.CreationState.VOTING.ordinal
) {
val username = it.username

binding.joinDashpayContainer.visibility = View.GONE
binding.requestedUsernameContainer.visibility = View.VISIBLE
if (it.creationError) {
binding.requestedUsernameTitle.text = getString(R.string.requesting_your_username_error_title)
binding.requestedUsernameSubtitle.text = getString(R.string.requesting_your_username_error_message, mainActivityViewModel.getRequestedUsername())
binding.requestedUsernameSubtitle.text = getString(R.string.requesting_your_username_error_message, username)
binding.retryRequestButton.isVisible = true
binding.retryRequestButton.text = getString(R.string.retry)
binding.requestedUsernameIcon.setImageResource(R.drawable.ic_join_dashpay_red)
} else {
if (it.usernameRequested == UsernameRequestStatus.NONE) {
binding.requestedUsernameTitle.text = getString(R.string.requesting_your_username_title)
binding.requestedUsernameSubtitle.text = getString(R.string.creating_your_username_message, username)
binding.requestedUsernameSubtitleTwo.isVisible = false
binding.retryRequestButton.isVisible = false
binding.requestedUsernameArrow.isVisible = false
binding.requestedUsernameContainer.isEnabled = false
Expand Down

0 comments on commit f823700

Please sign in to comment.