-
Notifications
You must be signed in to change notification settings - Fork 153
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
ISSUE-543: add parsing CollapsingToolbarLayout title + sample #544
ISSUE-543: add parsing CollapsingToolbarLayout title + sample #544
Conversation
mfglushchenko
commented
Jul 18, 2023
- add CollapsingToolbarLayout titles to the list of localized strings
- add sample screen and test
@@ -61,7 +62,25 @@ internal class ActivityMetadata( | |||
v.width, | |||
v.height | |||
) | |||
}.toMutableList() | |||
|
|||
val stringsFromToolbarLayouts = TreeIterables.depthFirstViewTraversal(decorView) |
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.
Can we avoid traversing the hierarchy twice? For example:
TreeIterables.depthFirstViewTraversal(decorView)
.filter { it.visibility == View.VISIBLE }
.filter( it is TextView || it is CollapsingToolbarLayout)
.map { case for TextView and CollapsingToolbarLayout } ...
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.
done
Some problems with detekt. @mfglushchenko have a look pls |
…screenshot-metadata
…screenshot-metadata
…tadata' of https://github.com/KasperskyLab/Kaspresso into ISSUE-543-toolbar-layout-missing-title-in-screenshot-metadata