|
@@ -1082,8 +1082,9 @@ fun BoxScope.AddRowSmart(
|
|
|
val ipInfo = basePreferenceHelper.getIpinfo()
|
|
|
val selectedSmartList = basePreferenceHelper.getSmartList()
|
|
|
var selectedServer = basePreferenceHelper.getServerObject()
|
|
|
+ var selectedSmartServer = basePreferenceHelper.getSmartServerObject()
|
|
|
|
|
|
- Log.d("smartLocationList", "Home:: server = ${smart?.server_name}")
|
|
|
+ Log.d("smartLocationList", "Home:: server = ${anySpecific?.server_name}")
|
|
|
var icon = Utils.getDrawable(context, selectedServer?.iso)
|
|
|
|
|
|
if (MainActivity.isSelectedServersShown) {
|
|
@@ -1094,20 +1095,23 @@ fun BoxScope.AddRowSmart(
|
|
|
smartConnect[0] -> {
|
|
|
icon = Utils.getDrawable(context, smart?.iso)
|
|
|
selectedServer = smart
|
|
|
+ selectedSmartServer = smart
|
|
|
}
|
|
|
smartConnect[1] -> {
|
|
|
icon = Utils.getDrawable(context, recently?.iso)
|
|
|
selectedServer = recently
|
|
|
+ selectedSmartServer = recently
|
|
|
}
|
|
|
smartConnect[2] -> {
|
|
|
icon = Utils.getDrawable(context, anySpecific?.iso)
|
|
|
selectedServer = anySpecific
|
|
|
+ selectedSmartServer = anySpecific
|
|
|
}
|
|
|
else -> {}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- basePreferenceHelper.setSmartServerObject(selectedServer)
|
|
|
+ basePreferenceHelper.setSmartServerObject(selectedSmartServer)
|
|
|
|
|
|
Row(
|
|
|
modifier = Modifier
|