Fix settings not opening

This commit is contained in:
Blatzar 2022-08-17 22:43:00 +02:00
parent 81995a860b
commit f42c366964
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ dependencies {
}
// use an integer for version numbers
version = 1
version = 2
cloudstream {

View File

@ -23,7 +23,7 @@ class NginxProviderPlugin : Plugin() {
init {
this.openSettings = {
val activity = context as? AppCompatActivity
val activity = it as? AppCompatActivity
if (activity != null) {
val frag = NginxSettingsFragment(this, nginxApi)
frag.show(activity.supportFragmentManager, nginxApi.name)

View File

@ -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
infoView.setOnClickListener(object : View.OnClickListener {
override fun onClick(v: View?) {
openBrowser("https://www.sarlays.com/use-nginx-with-cloudstream/")
openBrowser(nginxApi.createAccountUrl)
}
})