mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-22 23:58:47 +01:00
Prompt before resetting keys
This commit is contained in:
parent
282be29247
commit
26400e6372
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user