feat: Safely set last logged account public key using null safety

This commit is contained in:
k1ngsterr1
2026-01-12 17:37:42 +05:00
parent 8aa17383cf
commit fb339642fa
6 changed files with 134 additions and 26 deletions

View File

@@ -147,7 +147,7 @@ class MainActivity : ComponentActivity() {
currentAccount = account
hasExistingAccount = true
// Save as last logged account
accountManager.setLastLoggedPublicKey(account.publicKey)
account?.let { accountManager.setLastLoggedPublicKey(it.publicKey) }
// Reload accounts list
scope.launch {
val accounts = accountManager.getAllAccounts()