mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
show providers not in json
This commit is contained in:
parent
d88750ab66
commit
315bb81806
1 changed files with 2 additions and 1 deletions
|
@ -378,7 +378,8 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
||||||
|
|
||||||
apis = allProviders.filter { api ->
|
apis = allProviders.filter { api ->
|
||||||
val name = api.javaClass.simpleName
|
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) {
|
} catch (e : Exception) {
|
||||||
|
|
Loading…
Reference in a new issue