|
@@ -545,7 +545,7 @@ fun HomeTV(
|
|
|
when (isConnect) {
|
|
|
App.CONNECTED -> {
|
|
|
AddText(
|
|
|
- text = "Connected",
|
|
|
+ text = context.getString(R.string.connected),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceContainerHigh,
|
|
|
// color = colorResource(id = R.color.light_blue_2),
|
|
@@ -556,7 +556,7 @@ fun HomeTV(
|
|
|
}
|
|
|
App.DISCONNECTED -> {
|
|
|
AddText(
|
|
|
- text = "Disconnected",
|
|
|
+ text = context.getString(R.string.disconnected),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceTint,
|
|
|
// color = colorResource(id = R.color.maroon_text),
|
|
@@ -567,7 +567,7 @@ fun HomeTV(
|
|
|
}
|
|
|
App.CONNECTING -> {
|
|
|
AddText(
|
|
|
- text = "Connecting...",
|
|
|
+ text = context.getString(R.string.connecting),
|
|
|
size = 18.sp,
|
|
|
color = MaterialTheme.colorScheme.surfaceTint,
|
|
|
// color = colorResource(id = R.color.maroon_text),
|
|
@@ -829,7 +829,7 @@ fun HomeTV(
|
|
|
),
|
|
|
) {
|
|
|
Text(
|
|
|
- text = "Smart Connect",
|
|
|
+ text = context.getString(R.string.smart_connect),
|
|
|
style = MaterialTheme.typography.customTypography.labelLarge.copy(
|
|
|
fontSize = 16.sp, lineHeight = 0.sp
|
|
|
),
|
|
@@ -1525,6 +1525,7 @@ fun BoxScope.AddRowSmartTV(
|
|
|
var selectedServer = basePreferenceHelper.getRecommendedServerObject()
|
|
|
var selectedSmartServer = basePreferenceHelper.getSmartServerObject()
|
|
|
var isButtonFocused by remember { mutableStateOf(false) }
|
|
|
+ var selectedSmartListLingual: String = ""
|
|
|
|
|
|
Log.d("smartLocationList", "Home:: server = ${selectedServer?.server_name}")
|
|
|
var icon = Utils.getDrawable(context, selectedServer?.iso)
|
|
@@ -1534,16 +1535,19 @@ fun BoxScope.AddRowSmartTV(
|
|
|
icon = Utils.getDrawable(context, recommended?.iso)
|
|
|
selectedServer = recommended
|
|
|
selectedSmartServer = recommended
|
|
|
+ selectedSmartListLingual = context.getString(R.string.recommended)
|
|
|
}
|
|
|
smartConnect[1] -> {
|
|
|
icon = Utils.getDrawable(context, recently?.iso ?: recommended?.iso)
|
|
|
selectedServer = recently ?: recommended
|
|
|
selectedSmartServer = recently
|
|
|
+ selectedSmartListLingual = context.getString(R.string.recently)
|
|
|
}
|
|
|
smartConnect[2] -> {
|
|
|
icon = Utils.getDrawable(context, anySpecific?.iso ?: recommended?.iso)
|
|
|
selectedServer = anySpecific ?: recommended
|
|
|
selectedSmartServer = anySpecific
|
|
|
+ selectedSmartListLingual = context.getString(R.string.any_specific)
|
|
|
}
|
|
|
else -> {}
|
|
|
}
|
|
@@ -1585,7 +1589,7 @@ fun BoxScope.AddRowSmartTV(
|
|
|
|
|
|
) {
|
|
|
ColumnText(
|
|
|
- text = selectedSmartList,
|
|
|
+ text = selectedSmartListLingual,
|
|
|
color = MaterialTheme.colorScheme.surfaceContainerLow,
|
|
|
// color = colorResource(id = R.color.blue_text),
|
|
|
size = 12.sp,
|
|
@@ -1643,7 +1647,7 @@ fun BoxScope.AddRowSmartTV(
|
|
|
)
|
|
|
}
|
|
|
.focusable(),
|
|
|
- text = AnnotatedString("Change"),
|
|
|
+ text = AnnotatedString(context.getString(R.string.change)),
|
|
|
style = MaterialTheme.typography.customTypography.headlineMedium.copy(
|
|
|
// color = MaterialTheme.colorScheme.surfaceContainerLow,
|
|
|
color = color,
|
|
@@ -1698,7 +1702,7 @@ fun BoxScope.AddRowSelectServerTV(navHostController: NavHostController, isTablet
|
|
|
modifier = Modifier.padding(start = 0.dp),
|
|
|
color = Color.Transparent
|
|
|
) {
|
|
|
- Text(text = "See All Locations",
|
|
|
+ Text(text = context.getString(R.string.see_all_locations),
|
|
|
style = MaterialTheme.typography.labelMedium.copy(
|
|
|
fontSize = if (isTablet()) 20.sp else 16.sp
|
|
|
),
|