mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-26 05:05:15 +00:00
removed an uneccessary parameter
This commit is contained in:
parent
32b182074e
commit
fa7ba49d93
1 changed files with 3 additions and 3 deletions
|
@ -38,12 +38,12 @@ class URLChangeFragment : DialogFragment() {
|
|||
else
|
||||
"https://${urlField.text}".removeSuffix("/")
|
||||
|
||||
saveUrl(finalUrl, requireActivity())
|
||||
saveUrl(finalUrl)
|
||||
}
|
||||
view.findViewById<MaterialButton>(R.id.url_reset).setOnClickListener {saveUrl(baseUrl, requireActivity())}
|
||||
view.findViewById<MaterialButton>(R.id.url_reset).setOnClickListener {saveUrl(baseUrl)}
|
||||
}
|
||||
|
||||
private fun saveUrl(url: String, context: Context) {
|
||||
private fun saveUrl(url: String) {
|
||||
getDefaultSharedPreferences(requireActivity()).edit().putString("install_url", url).apply()
|
||||
dismiss()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue