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:
parent
025ff6a689
commit
a632ab9cf7
@ -139,7 +139,15 @@ class AddMemberFragment(private val accountHolder: AccountHolder, private val ca
|
|||||||
doAsync {
|
doAsync {
|
||||||
try {
|
try {
|
||||||
invitationManager.invite(cachedCollection.col, username, profile.pubkey, accessLevel)
|
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) {
|
} catch (e: EtebaseException) {
|
||||||
uiThread { handleError(e.localizedMessage) }
|
uiThread { handleError(e.localizedMessage) }
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,7 @@
|
|||||||
<string name="collection_members_add">Invite user</string>
|
<string name="collection_members_add">Invite user</string>
|
||||||
<string name="collection_members_add_error">Error adding member</string>
|
<string name="collection_members_add_error">Error adding member</string>
|
||||||
<string name="collection_members_adding">Inviting user</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_title">Verify security fingerprint</string>
|
||||||
<string name="trust_fingerprint_body">Verify %s\'s security fingerprint to ensure the encryption is secure.</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>
|
<string name="collection_members_error_user_not_found">User (%s) not found</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user