fix(shadowsocks): allow set plugin without plugin-opts

Signed-off-by: HystericalDragon <HystericalDragons@proton.me>
This commit is contained in:
HystericalDragon 2023-11-25 13:15:29 +08:00 committed by purofle
parent 8229f3982b
commit c581dd2625

View File

@ -39,7 +39,7 @@ class ShadowsocksSettingsActivity : ProfileSettingsActivity<ShadowsocksBean>() {
val pn = pluginName.readStringFromCache()
val pc = pluginConfig.readStringFromCache()
plugin = if (pn.isNotBlank() && pc.isNotBlank()) "$pn;$pc" else ""
plugin = if (pn.isNotBlank()) "$pn;$pc" else ""
}
override fun PreferenceFragmentCompat.createPreferences(