Prevent the dialog from being cancellable, since OK button finish the Activity.

This commit is contained in:
Benoit Marty 2022-01-27 16:40:49 +01:00
parent db3f60b4b1
commit e3242f0deb
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class LocationSharingFragment @Inject constructor(
.setPositiveButton(R.string.ok) { _, _ -> .setPositiveButton(R.string.ok) { _, _ ->
activity?.finish() activity?.finish()
} }
.setCancelable(false)
.show() .show()
} }