-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Config-driven linear onboarding dialogs] Extract render engine and controllers #9365
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
Open
LukasPaczos
wants to merge
28
commits into
develop
from
refactor/lpaczos/config-driven-linear-onboarding-dialogs/renderer
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
dca90cc
add config-driven onboarding dialog data model
LukasPaczos 6f618e1
add config-driven dialog binder contracts and content value store
LukasPaczos b22887b
add config-driven dialog render engine and controller contracts
LukasPaczos 14c2975
add background, step indicator, card anchor and card arrow controllers
LukasPaczos 36654f2
add embellishment controller with decoration fit and choreography
LukasPaczos 401cd08
add card stage owning reveal, morph, fade and cta choreography
LukasPaczos 186c762
add comparison chart and address bar binders with the content controller
LukasPaczos b026518
add dialog config resolver for the comparison chart and address bar s…
LukasPaczos b2b21ba
add config-driven onboarding page view model
LukasPaczos 010944f
add config-driven onboarding page fragment
LukasPaczos 543bd1a
select the config-driven onboarding renderer behind a feature flag
LukasPaczos 8e2b85a
baseline the impl module import in the config-driven view model tests
LukasPaczos 578545b
drop the unused default browser detector from the config-driven view …
LukasPaczos e7e82cf
drop the cta clickability note from the card stage contract
LukasPaczos 7694942
clean ups and comment adjustments
LukasPaczos 6c3a7fa
Add a content-ready hook for non-Animator entrance work
LukasPaczos 7a733ac
comment adjustments
LukasPaczos 25ddb95
apply settled card anchor before bounds transition
LukasPaczos 0400a81
give the card's anchor a single owner
LukasPaczos 91c180f
give screens with no decoration a reserved band
LukasPaczos 1002717
cleanup comments
LukasPaczos 99b3e75
release background controller
LukasPaczos 722e873
fix walking dax entry
LukasPaczos 7fd87f2
fix lambda access
LukasPaczos 713795f
address review comments
LukasPaczos faae556
rename ConfigDrivenWelcomePage to ConfigDrivenWelcomePageFragment
LukasPaczos 6c49269
escape isLaidOut check loop
LukasPaczos b4d0f59
fix abrupt background reposition on transition start
LukasPaczos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,11 +116,6 @@ class OnboardingDecorationFitCorrector( | |
|
|
||
| if (target == null) { | ||
| deco.isGone = true | ||
| dialog.updateLayoutParams<ConstraintLayout.LayoutParams> { | ||
| verticalBias = 0f | ||
| bottomToTop = ConstraintLayout.LayoutParams.UNSET | ||
| bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID | ||
| } | ||
|
Comment on lines
-119
to
-123
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the only change to the "flag off" code path. This code is moved directly to |
||
| onDecorationHidden() | ||
| return false | ||
| } | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Refs https://github.com/duckduckgo/Android/pull/9365/changes#r3690849481, this is the only change to production codebase, just a moved functional call.