New Feature
Fixed incorrect default order of server list as described in the issue https://github.com/2dust/v2rayNG/issues/2116 The order was problematic for users who add new servers more frequently
This commit is contained in:
1 parent
3d7ed12d4b
commit
ae9aa75ba0
2 files changed
+3
-3
No files matched your search
@@ -46,7 +46,7 @@ object MmkvManager {
|
||||
serverStorage?.encode(key, Gson().toJson(config))
|
||||
val serverList = decodeServerList()
|
||||
if (!serverList.contains(key)) {
|
||||
serverList.add(key)
|
||||
serverList.add(0, key)
|
||||
mainStorage?.encode(KEY_ANG_CONFIGS, Gson().toJson(serverList))
|
||||
if (mainStorage?.decodeString(KEY_SELECTED_SERVER).isNullOrBlank()) {
|
||||
mainStorage?.encode(KEY_SELECTED_SERVER, key)
|
||||
|
||||
Reference in new issue
Block a user