Search: the folded bottom bar should be a Home button, not a second search icon

Abierto Apto para principiantes
#2,816 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
83/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
mobile

Línea de trabajo

Empieza en LiquidGlassAppBottomNavigationBar.android.kt, especialmente en la lógica de collapsedCircle que ya comprueba isInSearchDestination. Sigue cómo selecciona el icono y gestiona los toques, y luego verifica que el círculo plegado muestre Home y lleve al usuario directamente a Home desde Search, conservando su comportamiento actual en las demás pestañas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem Description

On Android, opening Search folds the bottom bar into a single circle, and that circle shows the search icon. You are already on Search, so it looks like a button that does nothing new. Tapping it only unfolds the bar, and you then need a second tap on Home to leave Search.

Getting back out of Search is the most likely thing someone wants from that button, and right now it takes two taps behind an icon that suggests something else.

Proposed Solution

While on Search, the folded circle shows the Home icon, and one tap goes straight to Home. Everywhere else the circle keeps working as it does now (it shows the current tab and unfolds the bar).

It's a small change in LiquidGlassAppBottomNavigationBar.android.kt: the collapsedCircle already knows isInSearchDestination, so it can pick the Home icon and call selectTab(Home) in that case. I've been using this in my fork and can send a PR against dev if you want it.

Alternative Solutions
  • Show the icon of the tab the user came from (Library, Mix…) and go back there. More precise, but less predictable than always Home.
  • Keep the search icon but make the tap go back. The icon would still say "search" while doing "back", so I prefer showing Home.
Additional Context

Before (2.5.0): the folded circle on Search shows the search icon.

After (my fork): it shows Home, and one tap goes Home. (The mini player beside it is just because something was playing, and isn't part of this request.)

Lenguaje dominante
Kotlin
Estrellas
13.8k
Forks
811
Merge medio
1 d 3 h
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de maxrave-dev/SimpMusic

Todos los issues de maxrave-dev/SimpMusic

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.