Open Bug 1892463 Opened 7 months ago Updated 3 months ago

Translations Binding is Calling safeInvalidateBrowserToolbarView too much

Categories

(Fenix :: Translations, defect, P2)

All
Android
defect

Tracking

(Not tracked)

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
Severity: -- → S3
Priority: -- → P2
Whiteboard: [fxdroid][foundation]
Whiteboard: [fxdroid][foundation] → [fxdroid][foundation][translations:128]

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
See Also: → 1909816

Moving the priority up because this overcalling could also be a factor in bug 1909816.

Priority: P3 → P2
Blocks: 1909674
You need to log in before you can comment on or make changes to this bug.