feat: Prevent immediate reload from DB after profile updates for better async handling
This commit is contained in:
@@ -716,7 +716,8 @@ fun MainScreen(
|
||||
// 3. This callback updates UI state immediately
|
||||
accountName = name
|
||||
accountUsername = username
|
||||
reloadTrigger++
|
||||
// Don't reload from DB immediately - it's async and may not be ready yet
|
||||
// The values are already updated above and DB is updated in ProfileScreen
|
||||
Log.d("MainActivity", "Profile saved: name=$name, username=$username, UI updated")
|
||||
},
|
||||
onLogout = onLogout,
|
||||
|
||||
Reference in New Issue
Block a user