1
0
mirror of https://github.com/etesync/android synced 2024-12-23 07:08:16 +00:00

Invitations: add a confirmation dialog for sent invitations.

This commit is contained in:
Tom Hacohen 2020-10-01 11:08:53 +03:00
parent 025ff6a689
commit a632ab9cf7
2 changed files with 10 additions and 1 deletions

View File

@ -139,7 +139,15 @@ class AddMemberFragment(private val accountHolder: AccountHolder, private val ca
doAsync {
try {
invitationManager.invite(cachedCollection.col, username, profile.pubkey, accessLevel)
uiThread { dismiss() }
uiThread {
AlertDialog.Builder(requireContext())
.setTitle(R.string.collection_members_add)
.setIcon(R.drawable.ic_account_add_dark)
.setMessage(R.string.collection_members_add_success)
.setPositiveButton(android.R.string.yes) { _, _ -> }
.show()
dismiss()
}
} catch (e: EtebaseException) {
uiThread { handleError(e.localizedMessage) }
}

View File

@ -159,6 +159,7 @@
<string name="collection_members_add">Invite user</string>
<string name="collection_members_add_error">Error adding member</string>
<string name="collection_members_adding">Inviting user</string>
<string name="collection_members_add_success">Invitation sent. User will be added once the invitation has been accepted.</string>
<string name="trust_fingerprint_title">Verify security fingerprint</string>
<string name="trust_fingerprint_body">Verify %s\'s security fingerprint to ensure the encryption is secure.</string>
<string name="collection_members_error_user_not_found">User (%s) not found</string>