Jetpack Mobile: Threat Details - custom views#13704
Conversation
…istate' into issue/13326-threat-details-custom-views
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
| BACKUP_SUB_HEADER(7) | ||
| BACKUP_SUB_HEADER(7), | ||
| THREAT_CONTEXT_LINES(8), | ||
| FILE_NAME(9) |
|
|
||
| /** | ||
| * Creates BackgroundColorSpan with padding | ||
| * Credits: https://medium.com/@tokudu/android-adding-padding-to-backgroundcolorspan-179ab4fae187 |
There was a problem hiding this comment.
@ashiagr - I never noticed the "non" spacing before, but this is a good hack. Nice find and enhancement
|
|
||
| @Reusable | ||
| class ThreatDetailsListItemsBuilder @Inject constructor() { | ||
| // TODO ashiagr to be implemented |
There was a problem hiding this comment.
Tiny nitpick - Looks like you implemented this, do you want to keep the TODO any longer?
|
@ashiagr - So far the code looks good, but I need your help (or a point in the right direction) for
I have no idea how to set that up. Help please. Thanks |
|
Thanks @zwarm! I've addressed your comments so far.
Pinged you on Slack with instructions. |
zwarm
left a comment
There was a problem hiding this comment.
LGTM! Highlighted as expected. Nicely done. 👍
Parent: #13703
This PR creates custom
ViewTypesforThreatContextandFileNamefor "Threat Details" screen.References: Scan design iteration i5
To test
Prerequisite:
ThreatContext.linesare shown correctly with a highlighted lineViewTypeforThreatFileNamecan be tested by putting below line above this line inThreatDetailsListItemsBuilder:threatModel.fileName?.let { items.add(ThreatFileNameState(UiStringText(it))) }Notes
Merge Instructions
PR submission checklist:
RELEASE-NOTES.txtif necessary.