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

オープン 初心者向け
#2,816 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
83/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

LiquidGlassAppBottomNavigationBar.android.ktから始め、すでにisInSearchDestinationを確認しているcollapsedCircleのロジックを特に見てください。アイコンの選択方法とタップ時の処理を追い、折りたたまれた円にHomeが表示され、SearchからHomeへユーザーを直接移動させることを確認してください。その際、他のタブでの現在の動作は維持します。

索引モデルが issue の本文から書いたものです。

説明

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.)

主要言語
Kotlin
スター
13.8k
フォーク
811
平均マージ
1日 3時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

maxrave-dev/SimpMusic のほかの issue

maxrave-dev/SimpMusic の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。