forked from shihaam/thijooree
update docs
This commit is contained in:
@@ -32,7 +32,7 @@ Contacts can be assigned to user-defined categories (e.g., "Family", "Business")
|
||||
|
||||
## Add Contact — `AddContactSheetFragment`
|
||||
|
||||
A bottom sheet for creating or editing a contact.
|
||||
A bottom sheet for creating or editing a contact. The companion exposes a single `newInstance(bmlProfileId?, accountNumber?, recipientName?, currency?)` factory (`AddContactSheetFragment.kt:572-585`) used by the BML USD → MIB auto-add flow on the [Transfer screen](20-transfer-flows.md#bml-usd--mib-no-saved-contact).
|
||||
|
||||
### Fields
|
||||
|
||||
@@ -50,7 +50,7 @@ The pencil icon next to the avatar opens a chooser:
|
||||
- **Gallery** — pick from device gallery
|
||||
- **Camera** — capture a new photo (temp file in `cacheDir`)
|
||||
|
||||
The image is stored locally in `filesDir/profile_images/` via `ProfileImageStore` with key `"contact_{id}"`.
|
||||
The selected image is held in memory as a base64 string (`selectedImageBase64` in `AddContactSheetFragment`) and uploaded inline with the contact on save. A local copy is also kept in `util/ContactImageCache` (cache directory, PNG, keyed by the image hash) so the avatar can be rendered without a round-trip on next open.
|
||||
|
||||
### Save
|
||||
|
||||
|
||||
Reference in New Issue
Block a user