mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-20 21:59:03 +02:00
feat: add mobile IPTV playlist management screen with auto-login functionality
This commit is contained in:
1 parent
2406b9b100
commit
32af7fd920
2 files changed
+21
-4
No files matched your search
@@ -28,6 +28,23 @@ class _MobilePlaylistScreenState extends ConsumerState<MobilePlaylistScreen> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
_playlistService.init();
|
||||
|
||||
// Auto-login: if playlists exist, navigate to first one automatically
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_checkAutoLogin();
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> _checkAutoLogin() async {
|
||||
try {
|
||||
final playlists = await _playlistService.getPlaylists();
|
||||
if (playlists.isNotEmpty && mounted) {
|
||||
// Navigate to first playlist automatically
|
||||
_navigateToDashboard(playlists.first);
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint('Auto-login check failed: $e');
|
||||
}
|
||||
}
|
||||
|
||||
void _refreshPlaylists() {
|
||||
|
||||
Reference in new issue
Block a user