|
|
|
|
@ -39,9 +39,10 @@ class UpdateSettingsFragment : BaseSettingsFragment() {
|
|
|
|
|
UiUtil.showGenericConfirmDialog(requireContext(), getString(R.string.reset), getString(R.string.reset_preferences_in_screen)) {
|
|
|
|
|
resetPreferences(preferences.edit(), preferenceXMLRes)
|
|
|
|
|
requireActivity().recreate()
|
|
|
|
|
val fragmentId = findNavController().currentDestination?.id
|
|
|
|
|
findNavController().popBackStack(fragmentId!!,true)
|
|
|
|
|
findNavController().navigate(fragmentId)
|
|
|
|
|
findNavController().currentDestination?.id?.apply {
|
|
|
|
|
findNavController().popBackStack(this,true)
|
|
|
|
|
findNavController().navigate(this)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
true
|
|
|
|
|
}
|
|
|
|
|
|