Shaky skips the feedback form after the bottom sheet was dismissed
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
delegate の launchShakeBottomSheet を読みます。これは isBottomSheetFlowActive = true を設定し、続いて onDataReady/doStartFeedbackFlow があり、ここではフラグは送信済みの sheet flow の後にのみクリアされます。さらに bottom sheet の Dismiss 行のハンドラーも読みます。サンプルアプリで再現します:「bottom sheet を手動で起動」、「Dismiss」、そして「feedback を手動で開始」。完了条件は、sheet の OnCancelListener がフラグをクリアすること、Dismiss 行が cancel() を呼ぶこと、flow を開始する行は引き続き dismiss() を呼ぶこと、手動の flow が FeedbackActivity に到達することです。
索引モデルが issue の本文から書いたものです。
説明
On main (ca3e5f0), with the default delegate (shouldUseBottomSheet() returns true):
- Shake, or call
startShakeBottomSheetFlowManually(). The bottom sheet opens. - Close it without picking a row: tap "Dismiss", press back, tap outside or swipe it down.
- Call
shaky.startFeedbackFlow(), which the README suggests for starting the flow without a shake.
Expected: FeedbackActivity opens and the user can write a message.
Actual: after the screenshot is collected, delegate.submit() is called right away with no message and a null title. With EmailShakeDelegate that opens the mail app with only the screenshot attached.
launchShakeBottomSheet sets isBottomSheetFlowActive = true when it shows the sheet. The flag is only cleared in onDataReady after a sheet flow has submitted. If the sheet is closed without a choice, nothing clears it, so the next doStartFeedbackFlow() from startFeedbackFlow() takes the sheet branch in onDataReady. The sample app shows it too: tap "Manually launch bottom sheet", tap "Dismiss", then tap "Manually start feedback".
I have a small fix: clear the flag in an OnCancelListener on the sheet, and make the Dismiss row call cancel() instead of dismiss(). The row taps that start a flow still call dismiss(), so their path is unchanged. A plain dismiss listener would not work: the row tap broadcasts first and the dismiss callback would clear the flag before onDataReady reads it.
- 主要言語
- Java
- スター
- 162
- フォーク
- 59
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linkedin/shaky-android のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
linkedin/shaky-android#60 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
linkedin/shaky-android#54 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
linkedin/shaky-android#48 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
linkedin/shaky-android#45 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
linkedin/shaky-android#20 · リアクション 1 件 ·
linkedin/shaky-android の issue をすべて見る
似ている issue
-
JPA security login throws when the stored password or roles string is null対応中かも @SebTardif が今日担当しました。 オープンarea/security env/windows
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
quarkusio/quarkus#58548 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/copilot-for-eclipse#522 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信