This commit is contained in:
LagradOst 2022-06-03 01:06:18 +02:00
parent ada48f2a98
commit b7b5c54c72
4 changed files with 11 additions and 12 deletions

View file

@ -132,11 +132,11 @@ object APIHolder {
for (api in allProviders) {
api.init()
}
APIHolder.apiMap = null
apiMap = null
}
var apis: List<MainAPI> = arrayListOf()
var apiMap: Map<String, Int>? = null
private var apiMap: Map<String, Int>? = null
private fun initMap() {
if (apiMap == null)
@ -352,7 +352,6 @@ abstract class MainAPI {
fun overrideWithNewData(data: ProvidersInfoJson) {
this.name = data.name
this.name
this.mainUrl = data.url
this.storedCredentials = data.credentials
}