INNER CODE UNIT · Kotlin

trackAppLaunch

1812z/HyperIsland · android/app/src/main/kotlin/io/github/hyperisland/MainActivity.kt:119

    private fun trackAppLaunch(isNewUser: Boolean) {
        Thread {
            XposedPrefsSyncApp.awaitReady()
            AnalyticsService.trackEnvironmentSnapshot(applicationContext, isNewUser)
        }.start()
    }

    private fun startBackgroundTasks(prefs: FlutterPrefsRepository) {
        if (!backgroundTasksStarted.compareAndSet(false, true)) return
        Thread {
            val xposedReady = XposedPrefsSyncApp.awaitReady()
            if (xposedReady && prefs.getBoolean("pref_show_welcome", true)) {
                TestNotificationService.sendWelcome(applicationContext)
            }
        }.start()
    }

    private fun openPrivacyPolicy() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…