commit 22b020f88d7b75347114f2e5f2a67543e54c0f40
parent a925b3563f52cccf0702ff5f8ecab7dda3748ea5
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Tue,  6 Feb 2024 00:22:10 +0100

fix(core): init native

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/SnapEnhance.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/SnapEnhance.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/SnapEnhance.kt @@ -173,7 +173,7 @@ class SnapEnhance { private fun initNative() { // don't initialize native when not logged in - if (!appContext.database.hasArroyo()) return + if (appContext.androidContext.getSharedPreferences("user_session_shared_pref", 0).getString("key_user_id", null) == null) return if (appContext.config.experimental.nativeHooks.globalState != true) return lateinit var unhook: () -> Unit