0
0
Fork 0
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:
Xinto 2020-10-02 12:46:07 +04:00
parent 32b182074e
commit fa7ba49d93

View file

@ -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()
}