Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CharcoalDialogFragment に Fragment Result Listener の requestKey を指定可能にする #48

Merged

Conversation

yugg003
Copy link
Contributor

@yugg003 yugg003 commented Feb 27, 2023

解決したいこと

  • 現状、CharcoalDialogFragment からFragment Result Listener で値を受け取るための requestKey が固定となっており、Fragment Result Listener を2つ以上設定する場合に片方を上書きしてしまう。上書きされないように対処したい。

やったこと

  • requestKey を CharcoalDialogFragment#newInstance で指定できるよう変更しました。

やらないこと

スクリーンショット

UIに変更が生じた場合はスクショを貼ってください

Before After

動作確認環境

  • カタログアプリのダイアログ画面にて、 CharcoalDialog 表示2 で表示されるダイアログの OK ボタンを押したときに Toast が表示されること。

@yugg003 yugg003 force-pushed the feature/charcoal_dialog_fragment/request_key branch from 2610418 to eb66b73 Compare March 1, 2023 02:12
@verno3632
Copy link
Contributor

(権限ないけど) よさそう

@verno3632 verno3632 merged commit 173dbc9 into pixiv:main Mar 14, 2023
@yugg003 yugg003 deleted the feature/charcoal_dialog_fragment/request_key branch March 15, 2023 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants