Files
iptv-android-tv-hermes/FIX_LOGIN_SUCCESS_NAV_V23.md
T

25 lines
965 B
Markdown

# Fix V23 - Login success navigation
Base: V22 auth-response-fix.
Problem:
- Login could succeed and save the configuration, but the app stayed on LoginScreen.
- In MainActivity, `hasSession` was computed once as a normal local value, not a Compose state.
- After a successful login, the parent navigation was not notified and did not recompose to MainMenu.
Fix:
- `AppNavigation` now keeps `hasSession` as mutable Compose state.
- `LoginScreen` now accepts `onLoginSuccess`.
- `LoginScreen` triggers `onLoginSuccess()` when `uiState` becomes `UiState.Success`.
- On success, navigation goes to `NavState.MainMenu`.
Scope:
- Only MainActivity.kt, LoginScreen.kt and version number changed.
- All V22 login server/auth parsing fixes remain.
- Login input dialog/focus fixes remain.
- No changes to LIVE, replay, player, global search, YouTube, recent LIVE, continue watching, or home scroll.
Version:
- versionCode = 23
- versionName = 2.0.23-login-success-nav