diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/SettingsPreferenceFragment.kt b/mobile/src/main/java/be/mygod/vpnhotspot/SettingsPreferenceFragment.kt index e4aa3d04..52c27f01 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/SettingsPreferenceFragment.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/SettingsPreferenceFragment.kt @@ -151,6 +151,7 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() { setArguments(preference.key, Services.connectivity.allNetworks.mapNotNull { Services.connectivity.getLinkProperties(it)?.allInterfaceNames }.flatten().toTypedArray()) + setTargetFragment(this@SettingsPreferenceFragment, 0) }.showAllowingStateLoss(parentFragmentManager, preference.key) else -> super.onDisplayPreferenceDialog(preference) }