Skip to content

Commit

Permalink
[#3869] Remove SelectCurrencyFragment navigation result logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Sep 8, 2024
1 parent 45496d6 commit bdf6dcd
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bdf6dcd

Please sign in to comment.