From 1be9c9c1bdb5671a7317f19bc3b78f0ba39b9a3a Mon Sep 17 00:00:00 2001 From: CnC-Robert Date: Sun, 4 Jun 2023 17:42:21 +0200 Subject: [PATCH] fix: use correct `getViewModel` --- .../main/java/app/revanced/manager/compose/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/revanced/manager/compose/MainActivity.kt b/app/src/main/java/app/revanced/manager/compose/MainActivity.kt index 996e5eba..86604b71 100644 --- a/app/src/main/java/app/revanced/manager/compose/MainActivity.kt +++ b/app/src/main/java/app/revanced/manager/compose/MainActivity.kt @@ -27,7 +27,8 @@ import dev.olshevski.navigation.reimagined.rememberNavController import me.zhanghai.android.appiconloader.coil.AppIconFetcher import me.zhanghai.android.appiconloader.coil.AppIconKeyer import org.koin.android.ext.android.get -import org.koin.androidx.viewmodel.ext.android.getViewModel +import org.koin.androidx.compose.getViewModel +import org.koin.androidx.viewmodel.ext.android.getViewModel as getActivityViewModel import org.koin.core.parameter.parametersOf import kotlin.math.roundToInt @@ -40,7 +41,7 @@ class MainActivity : ComponentActivity() { installSplashScreen() - getViewModel() + getActivityViewModel() val scale = this.resources.displayMetrics.density val pixels = (36 * scale).roundToInt()