|
@@ -60,6 +60,7 @@ import com.vpn.fastestvpnservice.beans.isDarkTheme
|
|
|
import com.vpn.fastestvpnservice.constants.AppConstant
|
|
|
import com.vpn.fastestvpnservice.constants.PrivacyPolicyDesc
|
|
|
import com.vpn.fastestvpnservice.constants.TermsAndConditionsDesc
|
|
|
+import com.vpn.fastestvpnservice.helpers.BasePreferenceHelper
|
|
|
import com.vpn.fastestvpnservice.sealedClass.BottomBarScreen
|
|
|
import com.vpn.fastestvpnservice.sealedClass.Screen
|
|
|
import kotlinx.coroutines.delay
|
|
@@ -93,8 +94,11 @@ fun TermsAndConditions(
|
|
|
.fillMaxSize()
|
|
|
.background(MaterialTheme.colorScheme.onPrimary)
|
|
|
) {
|
|
|
- val tncUrl = if (isDarkTheme.value) "${AppConstant.BASE_WEBVIEW_URL}terms-of-service?skin=dark"
|
|
|
- else "${AppConstant.BASE_WEBVIEW_URL}terms-of-service?device=ios"
|
|
|
+ val context = LocalContext.current
|
|
|
+ val basePreferenceHelper = BasePreferenceHelper(context)
|
|
|
+ val languageIdentifier = basePreferenceHelper.getLanguage()
|
|
|
+ val tncUrl = if (isDarkTheme.value) "${AppConstant.BASE_WEBVIEW_URL}${languageIdentifier}/terms-of-service?skin=dark"
|
|
|
+ else "${AppConstant.BASE_WEBVIEW_URL}${languageIdentifier}/terms-of-service?device=ios"
|
|
|
|
|
|
AndroidView(factory = {
|
|
|
WebView(it).apply {
|