diff --git a/vector/src/main/java/im/vector/riotx/features/settings/crosssigning/CrossSigningSettingsFragment.kt b/vector/src/main/java/im/vector/riotx/features/settings/crosssigning/CrossSigningSettingsFragment.kt index 0c2f8cdee6..84be3ade8a 100644 --- a/vector/src/main/java/im/vector/riotx/features/settings/crosssigning/CrossSigningSettingsFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/settings/crosssigning/CrossSigningSettingsFragment.kt @@ -120,6 +120,12 @@ class CrossSigningSettingsFragment @Inject constructor( } override fun onResetCrossSigningKeys() { - viewModel.handle(CrossSigningAction.InitializeCrossSigning()) + AlertDialog.Builder(requireContext()) + .setTitle(R.string.dialog_title_confirmation) + .setMessage(R.string.are_you_sure) + .setPositiveButton(R.string.ok) { _, _ -> + viewModel.handle(CrossSigningAction.InitializeCrossSigning()) + } + .show() } }