material-components / material-components/material-components-android
[MaterialDatePicker] Make the class open*.
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 17.4k
- フォーク
- 3.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Is your feature request related to a problem? Please describe.
I would suggest the class to be made public open, so we could attach the selection listener in a subclass and use "sharedViewModel" to deliver the selected date. At the moment in case of screen rotation, we need to detach the listeners and reattach when the new fragment is ready to avoid a memory leak.
Describe the solution you'd like
Make the class public.
Describe alternatives you've considered
Maybe another way to avoid subclassing it would be the old fashion OnInteractionListener on the parentFragment / activity.
We also happily accept pull requests.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
MaterialDatePicker のエントリポイントから開始し、fragment の再生成時に選択リスナーが現在どのようにアタッチされているかを確認します。要求されたサブクラス化アプローチと、提案されている parentFragment または activity のリスナーを使う代替案を比較します。ローテーション中にリスナーを手動でデタッチしなくても、サポートされている API によって意図したリスナーと sharedViewModel の使用が明確に可能になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, java
- 領域
- api, mobile
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100