Open
Bug 1892463
Opened 1 year ago
Updated 1 year ago
Translations Binding is Calling safeInvalidateBrowserToolbarView too much
Categories
(Firefox for Android :: Translations, defect, P2)
Tracking
()
NEW
People
(Reporter: olivia, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][foundation][translations:128])
This is likely contributing and making the toolbar issue worse with overlapping icons in bug 1862102.
With a debugger breakpoint set at ActionContainer.kt#96 I saw over 30 invalidation calls occurring from the TranslationsBinding. It should be possible to make this invalidation more targeted, since only some of the state changes impact showing the toolbar state.
Important toolbar state calls:
- When the page should show the icon:
isExpectedTranslate - When the translations feature should popup:
isOfferTranslate - When we need to turn the icon purple and show different content description:
isTranslated - Likely some around when reader mode is engaged
| Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
Whiteboard: [fxdroid][foundation] → [fxdroid][foundation][translations:128]
| Reporter | ||
Comment 1•1 year ago
|
||
This is more a code health issue, removing it from the translations roadmap. (I think this has been resolved or else mitigated in other toolbar redesing work as well.)
No longer blocks: fx-translation-android
Priority: P2 → P3
| Reporter | ||
Comment 2•1 year ago
|
||
Moving the priority up because this overcalling could also be a factor in bug 1909816.
Priority: P3 → P2
You need to log in
before you can comment on or make changes to this bug.
Description
•