Closed ambushwork closed 6 days ago
Attention: Patch coverage is 60.00000%
with 36 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
feature/session-replay/compound-button-mappers@7b69c91
). Learn more about missing BASE report. Report is 34 commits behind head on feature/session-replay/compound-button-mappers.
lgtm. Although I don't have a deep knowledge of SR, so a review from someone else who is closer to the Session Replay topic than I am is preferable.
Agree, @xgouchet @jonathanmos do you want to take a look at this?
What does this PR do?
Summary
This PR improves the session replay
CheckableTextViewMapper
, tries to generate the wireframes which are much closer to the real UI elements. SinceCheckableTextViewMapper
is a base class of the other mappers, following UI components are affected in session replay:Main changes in the PR:
CheckableWireFrameMapper
, mergeresolveCheckedCheckable()
andresolveNotCheckedCheckable()
functions into one functionresolveCheckable
, because we don't generate differentShapeWireframe
for the "checked" or "not checked" states, instead, we retrieve the drawable to generateImageWireframe
.CheckableTextViewMapper
, Inside the implementation ofresolveCheckable
we try to retrieve the drawable of "checked" and "not checked", and then set theColorStateList
of the view on the drawable to have the correct tint.CheckableCompoundButton
, the bounds is adjusted for the drawable rendering,getCheckableDrawable
is implemented to retrieve the drawable for anyCompoundButton
CheckedTextView
getCheckableDrawable
is implemented to retrieve the drawable forCheckedTextView
.ShapeWireframe
is correctly generated, we only need to test thatImageWireFrameHelper.createImageWireframe
is called.Demo
Motivation
Additional Notes
Remain issue
CompoundButtonMapper
for the version under 23Review checklist (to be filled by reviewers)