Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Support for verifiable presentations (proofs) from identities and accounts

### Fixed

- Inability to change validator pool ID

## [1.16.1] - 2025-12-05

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,20 @@ class AccountsListFragment : BottomSheetDialogFragment() {
}
})
binding.accountRecyclerview.adapter = adapter
viewModel.listItemsLiveData.observe(viewLifecycleOwner, adapter::setData)
viewModel.listItemsLiveData.observe(viewLifecycleOwner) { items ->
adapter.setData(items)
scrollToActiveAccount(items)
}
}

private fun scrollToActiveAccount(items: List<AccountsOverviewListItem>) {
val activeIndex = items.indexOfFirst {
it is AccountsOverviewListItem.Account &&
it.accountWithIdentity.account.isActive
}

if (activeIndex == -1) return
binding.accountRecyclerview.scrollToPosition(activeIndex)
}

private fun selectAccount(item: Account) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import com.concordium.wallet.util.getSerializable
import java.math.BigInteger

class DelegationRegisterAmountActivity : BaseDelegationBakerRegisterAmountActivity(
R.layout.activity_delegation_registration_amount, R.string.delegation_register_delegation_title
R.layout.activity_delegation_registration_amount,
R.string.delegation_register_delegation_title
) {
private lateinit var binding: ActivityDelegationRegistrationAmountBinding

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,17 @@ class DelegationRegisterPoolActivity : BaseDelegationBakerActivity(
)
binding.poolId.isVisible = checkIsPassiveMode().not()

if (checkIsPassiveMode())
if (checkIsPassiveMode()) {
binding.poolDesc.text = ""
else
} else {
binding.poolDesc.setText(
if (BuildConfig.ENV_NAME == "production")
R.string.delegation_register_delegation_desc
else
R.string.delegation_register_delegation_desc_testnet
)
viewModel.selectBakerPool()
}

binding.poolDesc.handleUrlClicks { url ->
IntentUtil.openUrl(this, url)
Expand Down
Loading