From b8124ff57374300f3cb97b6b93dd19318c6f1f63 Mon Sep 17 00:00:00 2001 From: bakyt Date: Wed, 12 Jun 2024 15:08:21 +0600 Subject: [PATCH] Rename class --- ...MarketTopCoinsViewModel2.kt => MarketTopCoinsViewModel.kt} | 4 ++-- .../bankwallet/modules/market/topcoins/TopCoins.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/{MarketTopCoinsViewModel2.kt => MarketTopCoinsViewModel.kt} (98%) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel2.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel.kt similarity index 98% rename from app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel2.kt rename to app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel.kt index a2fad7e89c..643de26d18 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel2.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/MarketTopCoinsViewModel.kt @@ -24,7 +24,7 @@ import kotlinx.coroutines.rx2.await import kotlin.enums.EnumEntries import kotlin.math.min -class MarketTopCoinsViewModel2( +class MarketTopCoinsViewModel( private var topMarket: TopMarket, private var sortingField: SortingField, private val marketKit: MarketKitWrapper, @@ -222,7 +222,7 @@ class MarketTopCoinsViewModel2( ) : ViewModelProvider.Factory { @Suppress("UNCHECKED_CAST") override fun create(modelClass: Class): T { - return MarketTopCoinsViewModel2( + return MarketTopCoinsViewModel( topMarket, sortingField, App.marketKit, diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/TopCoins.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/TopCoins.kt index fdc9a2e0f0..2e482e896b 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/TopCoins.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topcoins/TopCoins.kt @@ -41,8 +41,8 @@ import io.horizontalsystems.bankwallet.ui.compose.components.ListErrorView fun TopCoins( onCoinClick: (String) -> Unit, ) { - val viewModel = viewModel( - factory = MarketTopCoinsViewModel2.Factory( + val viewModel = viewModel( + factory = MarketTopCoinsViewModel.Factory( TopMarket.Top100, SortingField.TopGainers, )