forked from thijooree/android
update docs
This commit is contained in:
@@ -6,7 +6,12 @@ The accounts screen is typically the default home destination. It shows all acti
|
||||
|
||||
## Fragment — `AccountsFragment`
|
||||
|
||||
Hosts a `RecyclerView` driven by `AccountsAdapter`. Observes `HomeViewModel.accounts` (a `LiveData<List<MibAccount>>`). The list is filtered to only include accounts whose profile visibility flag is enabled.
|
||||
Hosts a `RecyclerView` driven by `AccountsAdapter`. Observes `HomeViewModel.accounts` (a `LiveData<List<BankAccount>>`). The list is filtered to only include accounts whose profile visibility flag is enabled.
|
||||
|
||||
Two image loaders are passed into the adapter (`AccountsFragment.kt:44-78`):
|
||||
|
||||
- `profileImageLoader` — MIB profile images fetched on-demand via `MibLoginFlow.fetchProfileImage()` (P41), keyed by hash and cached in memory for the fragment lifetime
|
||||
- `localProfileImageLoader` — BML and Fahipay avatars loaded via `ProfileImageStore` using `bml_{profileId}` / `fahipay_{loginId}` keys
|
||||
|
||||
A **pull-to-refresh** gesture triggers `HomeActivity.autoRefresh()`, which re-fetches all bank dashboards in parallel.
|
||||
|
||||
@@ -25,7 +30,7 @@ Accounts are grouped by bank + CIF type (for MIB) or bank name (for BML/Fahipay)
|
||||
|
||||
### Account / Card Rows
|
||||
|
||||
Each row is bound from an `AccountListDisplay` object produced by `AccountListParser.from(account)`. See [Account Parser Architecture](PARSERS.md) for mapping details.
|
||||
Each row is bound from an `AccountListDisplay` object produced by `AccountListParser.from(account)`. See [Account Parser Architecture](19-parsers.md) for mapping details.
|
||||
|
||||
| Field | Row element |
|
||||
|---|---|
|
||||
|
||||
Reference in New Issue
Block a user