feat(auto): surface favorite groups as Android Auto sub-folders

Favoritos now renders non-empty custom groups as grupo:<id>
sub-folders (hidden when empty) with ungrouped stations left as
direct leaves, reusing the existing hijos() path so the zero-groups
case stays byte-identical to today's flat list.
This commit is contained in:
2026-07-19 13:42:25 +02:00
parent f9003436ea
commit f368bcc777
11 changed files with 812 additions and 1 deletions
+3
View File
@@ -345,6 +345,9 @@ class EstadoRadio extends ChangeNotifier {
Future<void> cargarGruposFavoritos() async {
_gruposFavoritos = await favoritos.obtenerGrupos();
// Design "live snapshot the source prefers": Android Auto's grouped
// Favoritos tree mirrors the same group list the phone just loaded.
_fuenteAuto?.actualizarSnapshot(grupos: _gruposFavoritos);
notifyListeners();
}