show providers not in json

This commit is contained in:
LagradOst 2022-03-17 12:43:27 +01:00
parent d88750ab66
commit 315bb81806
1 changed files with 2 additions and 1 deletions

View File

@ -378,7 +378,8 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
apis = allProviders.filter { api ->
val name = api.javaClass.simpleName
acceptableProviders.contains(name) || restrictedApis.contains(name)
// if the provider does not exist in the json file, then it is shown by default
!providersJsonMap.containsKey(name) || acceptableProviders.contains(name) || restrictedApis.contains(name)
}
}
} catch (e : Exception) {