From 709012410305e0860f54bc6710095efff7fa48b9 Mon Sep 17 00:00:00 2001 From: Oleg Koretsky Date: Tue, 25 Jun 2024 12:20:00 +0300 Subject: [PATCH] Do not show shielding action in balance menu --- .../accountdetails/AccountDetailsActivity.kt | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/app/src/main/java/com/concordium/wallet/ui/account/accountdetails/AccountDetailsActivity.kt b/app/src/main/java/com/concordium/wallet/ui/account/accountdetails/AccountDetailsActivity.kt index 827ceec0..f8f57138 100644 --- a/app/src/main/java/com/concordium/wallet/ui/account/accountdetails/AccountDetailsActivity.kt +++ b/app/src/main/java/com/concordium/wallet/ui/account/accountdetails/AccountDetailsActivity.kt @@ -15,7 +15,6 @@ import com.concordium.wallet.data.model.DelegationTarget import com.concordium.wallet.data.model.Token import com.concordium.wallet.data.model.TransactionStatus import com.concordium.wallet.data.room.Account -import com.concordium.wallet.data.room.Recipient import com.concordium.wallet.data.util.CurrencyUtil import com.concordium.wallet.databinding.ActivityAccountDetailsBinding import com.concordium.wallet.ui.account.accountqrcode.AccountQRCodeActivity @@ -29,7 +28,6 @@ import com.concordium.wallet.ui.cis2.lookfornew.TokenSelectedDestination import com.concordium.wallet.ui.common.delegates.EarnDelegate import com.concordium.wallet.ui.common.delegates.EarnDelegateImpl import com.concordium.wallet.ui.recipient.scanqr.ScanQRActivity -import com.concordium.wallet.ui.transaction.sendfunds.SendFundsActivity import com.concordium.wallet.ui.walletconnect.WalletConnectActivity import com.concordium.wallet.uicore.afterMeasured import com.concordium.wallet.util.TokenUtil @@ -467,29 +465,6 @@ class AccountDetailsActivity : BaseActivity(), EarnDelegate by EarnDelegateImpl( startActivity(intent) } - private fun onSendShieldedClicked() { - val intent = Intent(this, SendFundsActivity::class.java) - intent.putExtra(SendFundsActivity.EXTRA_SHIELDED, true) - intent.putExtra(SendFundsActivity.EXTRA_ACCOUNT, viewModelAccountDetails.account) - startActivity(intent) - } - - private fun onShieldFundsClicked() { - val intent = Intent(this, SendFundsActivity::class.java) - intent.putExtra(SendFundsActivity.EXTRA_SHIELDED, viewModelAccountDetails.isShielded) - intent.putExtra(SendFundsActivity.EXTRA_ACCOUNT, viewModelAccountDetails.account) - intent.putExtra( - SendFundsActivity.EXTRA_RECIPIENT, - Recipient( - viewModelAccountDetails.account.id, - viewModelAccountDetails.account.name, - viewModelAccountDetails.account.address - ) - ) - intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) - startActivity(intent) - } - private fun onAddressClicked() { val intent = Intent(this, AccountQRCodeActivity::class.java) intent.putExtra(AccountQRCodeActivity.EXTRA_ACCOUNT, viewModelAccountDetails.account) @@ -551,11 +526,6 @@ class AccountDetailsActivity : BaseActivity(), EarnDelegate by EarnDelegateImpl( binding.buttonsSlider.addButton(R.drawable.ic_scan, "7") { scan() } - if (viewModelAccountDetails.shieldingEnabledLiveData.value == true) { - binding.buttonsSlider.addButton(R.drawable.ic_shielded_icon, "9") { - onShieldFundsClicked() - } - } binding.buttonsSlider.addButton(R.drawable.ic_settings, "10") { gotoAccountSettings(false) }