-
Notifications
You must be signed in to change notification settings - Fork 112
Hello ModalScreenOverlay #726
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
Conversation
33dfa36 to
b9b1e3e
Compare
|
I've clicked Ready for Review and clocked out for the day, but I have to admit that I haven't actually seen the build go green yet. 🤞 |
b9b1e3e to
ebf1bab
Compare
|
Failure was a silly lint check. @RBusarow this is good to go. |
| * ) { | ||
| * override fun buildDialogWithContentView(contentView: View): Dialog { | ||
| * return super.buildDialogWithContentView(contentView).also { | ||
| * // Whatever, man, go wild. For that matter don't feel obligated to call super. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:lebowski:
ebf1bab to
9ab18dc
Compare
|
|
||
| override val compatibilityKey: String get() = keyFor(content, "ScreenOverlay") | ||
| override val compatibilityKey: String | ||
| get() = keyFor(content, this::class.simpleName ?: "ScreenOverlay") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
| get() = keyFor(content, this::class.simpleName ?: "ScreenOverlay") | |
| get() = keyFor(content, this::class.simpleName ?: ScreenOverlay::class.simpleName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to put a !! on that, but 👍
- Adds `ModalScreenOverlay` - Makes `ModalScreenOverlayDialogFactory` non-abstract, and uses it for `ModalScreenOverlay` by default - Both `ModalScreenOverlayDialogFactory` and `AlertOverlayDialogFactory` are now public open classes, with kdoc explaining that they can be used as base classes for custom renderings. - Improves / corrects kdoc on `OverlayDialogFactoryFinder` and `ScreenViewFactoryFinder`, showing how to use them to customize built in rendering types. - Makes the `LoadingSpinner` in the benchmarked Poetry app use the new hotness, and fixes its animation in the process
9ab18dc to
24db899
Compare
Adds
ModalScreenOverlayMakes
ModalScreenOverlayDialogFactorynon-abstract, and uses it forModalScreenOverlayby defaultBoth
ModalScreenOverlayDialogFactoryandAlertOverlayDialogFactoryare now public open classes, with kdoc explaining that they can be used as base classes for custom renderings.Improves / corrects kdoc on
OverlayDialogFactoryFinderandScreenViewFactoryFinder, showing how to use them to customize built in rendering types.Makes the
LoadingSpinnerin the benchmarked Poetry app use the new hotness, and fixes its animation in the process