mirror of
https://github.com/recloudstream/cloudstream-extensions.git
synced 2024-08-15 03:03:54 +00:00
Fix settings not opening
This commit is contained in:
parent
81995a860b
commit
f42c366964
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -23,7 +23,7 @@ class NginxProviderPlugin : Plugin() {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
this.openSettings = {
|
this.openSettings = {
|
||||||
val activity = context as? AppCompatActivity
|
val activity = it as? AppCompatActivity
|
||||||
if (activity != null) {
|
if (activity != null) {
|
||||||
val frag = NginxSettingsFragment(this, nginxApi)
|
val frag = NginxSettingsFragment(this, nginxApi)
|
||||||
frag.show(activity.supportFragmentManager, nginxApi.name)
|
frag.show(activity.supportFragmentManager, nginxApi.name)
|
||||||
|
|
|
@ -40,7 +40,7 @@ class NginxSettingsFragment(private val plugin: Plugin, val nginxApi: NginxApi)
|
||||||
// object : View.OnClickListener is required to make it compile because otherwise it used invoke-customs
|
// object : View.OnClickListener is required to make it compile because otherwise it used invoke-customs
|
||||||
infoView.setOnClickListener(object : View.OnClickListener {
|
infoView.setOnClickListener(object : View.OnClickListener {
|
||||||
override fun onClick(v: View?) {
|
override fun onClick(v: View?) {
|
||||||
openBrowser("https://www.sarlays.com/use-nginx-with-cloudstream/")
|
openBrowser(nginxApi.createAccountUrl)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue