-
Notifications
You must be signed in to change notification settings - Fork 472
For #6895: Add optional itemDecoration in browser tabs tray. #6896
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6896 +/- ##
============================================
- Coverage 77.33% 77.21% -0.12%
+ Complexity 4817 4776 -41
============================================
Files 646 641 -5
Lines 23570 23402 -168
Branches 3469 3434 -35
============================================
- Hits 18227 18070 -157
+ Misses 3894 3889 -5
+ Partials 1449 1443 -6
Continue to review full report at Codecov.
|
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.
Looks good, just a small nit.
@mcarare The confusion seems to have come from the lambda in the I agree we need a better API though. 🙂 |
@jonalmeida Yes, I think we should take into considerations more use cases and possible pitfalls of using this API. The change in this PR came as a fix to the crash that happens in fenix nightly, caused by the fact that |
Adding the item decoration was not the cause for that bug, but that it was in the scope of the TabsAdapter.viewHolderProvider which is invoked when a new view holder is created. Maybe we should look into making a better TabsAdapter too? |
@jonalmeida Im not sure we are talking about the same crash. I was referring to this one: mozilla-mobile/fenix#10453 |
Yes, this was the fix for it. :) |
Yeah, I already had a PR for that: mozilla-mobile/fenix#10476... |
Oh no, I'm sorry! I didn't see any discussion happening on Riot or Slack, so I put up a PR. Apologise for that! I'm still unsure this change will avoid that bug, but let's try. |
@jonalmeida Np. I have already tried it with local AC build, it works :) |
bors r=psymoon |
6896: For #6895: Add optional itemDecoration in browser tabs tray. r=psymoon a=mcarare Co-authored-by: mcarare <[email protected]>
Build failed: |
bors retry |
Build succeeded:
|
Pull Request checklist
After merge