Shaky skips the feedback form after the bottom sheet was dismissed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Đọc launchShakeBottomSheet của delegate, chỗ đặt isBottomSheetFlowActive = true, rồi onDataReady/doStartFeedbackFlow nơi flag chỉ được xóa sau khi một flow sheet đã được submit, và handler của dòng Dismiss trong bottom sheet. Tái hiện bằng sample app: “Manually launch bottom sheet”, “Dismiss”, rồi “Manually start feedback”. Hoàn thành nghĩa là OnCancelListener của sheet xóa flag, dòng Dismiss gọi cancel(), các dòng bắt đầu flow vẫn gọi dismiss(), và flow thủ công đến được FeedbackActivity.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 162
- Fork
- 59
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linkedin/shaky-android
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
linkedin/shaky-android#60 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
linkedin/shaky-android#54 · 3 bình luận ·
-
App crash during FeedbackĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
linkedin/shaky-android#48 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
linkedin/shaky-android#45 · 1 bình luận ·
-
google map screenshotĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
linkedin/shaky-android#20 · 1 reaction ·
Tất cả issue của linkedin/shaky-android
Issue tương tự
-
JPA security login throws when the stored password or roles string is nullCó thể đã có người làm @SebTardif đã nhận hôm nay. Đang mởarea/security env/windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
quarkusio/quarkus#58548 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/copilot-for-eclipse#522 ·
-
Feedback on page "JDK Releases"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày