feat: Save last logged account public key after authentication for improved user experience

This commit is contained in:
k1ngsterr1
2026-01-12 17:16:44 +05:00
parent 67e99901be
commit 8aa17383cf
6 changed files with 117 additions and 27 deletions

View File

@@ -146,6 +146,8 @@ class MainActivity : ComponentActivity() {
onAuthComplete = { account ->
currentAccount = account
hasExistingAccount = true
// Save as last logged account
accountManager.setLastLoggedPublicKey(account.publicKey)
// Reload accounts list
scope.launch {
val accounts = accountManager.getAllAccounts()