INNER CODE UNIT · Kotlin

openPrivacyPolicy

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

    private fun openPrivacyPolicy() {
        val language = resources.configuration.locales.get(0).language
        val path = if (language.equals("zh", ignoreCase = true)) "privacy" else "en/privacy"
        startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("$PRIVACY_POLICY_BASE_URL/$path")))
    }

    private companion object {
        const val PRIVACY_POLICY_BASE_URL = "https://hyperisland.1812z.top"
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…