Skip to content

Commit

Permalink
Check if correct type of import key item is shown and switch if not
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatovital committed Oct 23, 2020
1 parent 221a88e commit d9feb23
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ class AppSettingsFragment : BaseViewBindingFragment<FragmentSettingsAppBinding>(
private fun setupOwnerKeyView(address: Solidity.Address? = null) {
with(binding) {
if (address != null) {
ownerKey.showNext()
if (ownerKey.currentView.id == R.id.import_owner_key) {
ownerKey.showNext()
}
with(removeOwnerKey) {
blockies.setAddress(address)
ownerAddress.text = address.shortChecksumString()
Expand Down

0 comments on commit d9feb23

Please sign in to comment.