Files
fksar/docs/thijooree/17-settings-storage.md
T
2026-06-13 21:30:12 +05:00

1.5 KiB

Settings — Storage

Clears locally cached data.


Fragment — SettingsStorageFragment

A single Clear All Caches button (SettingsStorageFragment.kt:44-49). No per-category clear actions, no size readout.


What gets cleared

Tapping the button invokes clearAllCaches() (SettingsStorageFragment.kt:62-72), which clears each of:

Cache Backing store
AccountCache Encrypted JSON file in filesDir
ContactsCache Encrypted JSON file in filesDir
FinancingCache Encrypted JSON file in filesDir
ForeignLimitsCache Encrypted JSON file in filesDir
RecentsCache Encrypted JSON file in filesDir
CardsCache Encrypted JSON file in filesDir
TransactionCache Per-account encrypted history files (tx_<key>.json)
ContactImageCache Local contact avatar bitmaps

It also resets the live HomeViewModel flows (accounts, mibCards, financing, bmlLoanDetails, bmlLimits, contacts, contactCategories) and triggers a refresh.


What is not cleared

  • Profile images stored by ProfileImageStore (filesDir/profile_images/) — BML and Fahipay avatars persist.
  • Credentials / sessions in CredentialStore.
  • Transfer receipts (Activities) — managed by ReceiptStore, persists across cache clears.
  • Notification read-state in NotificationsCache.

To remove a login entirely (and the credentials behind it), use Settings → Logins.


 


← Settings — Appearance