Skip to content

Commit

Permalink
feat(coinbase): hide buy swap from coinbase info and portal screens (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering authored Dec 4, 2023
1 parent ad8c81b commit 84a72dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class CoinbaseServicesFragment : Fragment(R.layout.fragment_integration_portal)
safeNavigate(CoinbaseServicesFragmentDirections.servicesToBuyDash())
}

// the convert or buy swap feature should be hidden
// as there are not enough supported currencies with the v3 API
binding.convertBtn.isVisible = false
binding.convertBtn.setOnClickListener {
viewModel.logEvent(AnalyticsConstants.Coinbase.CONVERT_DASH)
safeNavigate(CoinbaseServicesFragmentDirections.servicesToConvertCrypto(true))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
Expand Down Expand Up @@ -62,6 +63,10 @@ class IntegrationOverviewFragment : Fragment(R.layout.fragment_integration_overv
binding.continueBtn.setOnClickListener {
continueCoinbase()
}
// the convert or buy swap feature should be hidden
// as there are not enough supported currencies with the v3 API
binding.buyConvertText.isVisible = false
binding.buyConvertIc.isVisible = false
}

private fun continueCoinbase() {
Expand Down

0 comments on commit 84a72dd

Please sign in to comment.