add support for default trsnager accounts

This commit is contained in:
2026-05-30 22:24:37 +05:00
parent a20f2a9ce7
commit ae8ad24d13
7 changed files with 135 additions and 3 deletions
@@ -627,6 +627,18 @@ class CredentialStore(context: Context) {
editor.apply()
}
// ── Default transfer/QR account ───────────────────────────────────────────
/** Account number the user has pinned as their default source for transfers and PayMV QR, or null. */
fun getDefaultAccountNumber(): String? = prefs.getString("default_account_number", null)
fun setDefaultAccountNumber(accountNumber: String?) {
val editor = prefs.edit()
if (accountNumber == null) editor.remove("default_account_number")
else editor.putString("default_account_number", accountNumber)
editor.apply()
}
// ── Dashboard card visibility ─────────────────────────────────────────────
fun getHiddenDashboardCardNumbers(): Set<String> =