Fix crashes on stupid devices

This commit is contained in:
Mygod
2018-06-13 15:51:10 +08:00
parent 202c4f87a8
commit 09690f19c8
5 changed files with 28 additions and 7 deletions

View File

@@ -98,7 +98,7 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() {
true
}
findPreference("misc.source").setOnPreferenceClickListener {
customTabsIntent.launchUrl(activity, Uri.parse("https://github.com/Mygod/VPNHotspot"))
customTabsIntent.launchUrl(requireActivity(), Uri.parse("https://github.com/Mygod/VPNHotspot"))
true
}
}