From bdf6dcd8c63d0704daa8cab727d2d3cdedb98598 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Mon, 24 Jun 2024 17:09:20 +0300 Subject: [PATCH] [Oztechan/CCC#3869] Remove SelectCurrencyFragment navigation result logic --- .../selectcurrency/SelectCurrencyBottomSheet.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/android/ui/mobile/src/main/kotlin/com/oztechan/ccc/android/ui/mobile/content/selectcurrency/SelectCurrencyBottomSheet.kt b/android/ui/mobile/src/main/kotlin/com/oztechan/ccc/android/ui/mobile/content/selectcurrency/SelectCurrencyBottomSheet.kt index 8030c56eaf..345f9bdd57 100644 --- a/android/ui/mobile/src/main/kotlin/com/oztechan/ccc/android/ui/mobile/content/selectcurrency/SelectCurrencyBottomSheet.kt +++ b/android/ui/mobile/src/main/kotlin/com/oztechan/ccc/android/ui/mobile/content/selectcurrency/SelectCurrencyBottomSheet.kt @@ -10,9 +10,7 @@ import androidx.lifecycle.lifecycleScope import co.touchlab.kermit.Logger import com.github.submob.basemob.bottomsheet.BaseVBBottomSheetDialogFragment import com.oztechan.ccc.android.ui.mobile.R -import com.oztechan.ccc.android.ui.mobile.content.calculator.CalculatorFragment.Companion.CHANGE_BASE_EVENT import com.oztechan.ccc.android.ui.mobile.databinding.BottomSheetSelectCurrencyBinding -import com.oztechan.ccc.android.ui.mobile.util.setNavigationResult import com.oztechan.ccc.android.ui.mobile.util.visibleIf import com.oztechan.ccc.client.core.analytics.AnalyticsManager import com.oztechan.ccc.client.core.analytics.model.ScreenName @@ -86,14 +84,7 @@ class SelectCurrencyBottomSheet : .onEach { viewEffect -> Logger.i { "SelectCurrencyBottomSheet observeEffects ${viewEffect::class.simpleName}" } when (viewEffect) { - is SelectCurrencyEffect.CurrencyChange -> { - setNavigationResult( - R.id.calculatorFragment, - viewEffect.newBase, - CHANGE_BASE_EVENT - ) - dismissDialog() - } + is SelectCurrencyEffect.CurrencyChange -> dismissDialog() SelectCurrencyEffect.OpenCurrencies -> navigate( R.id.selectCurrencyBottomSheet,