Open Bug 1881804 Opened 1 year ago Updated 1 year ago

Refactor TranslationsState to use named States when Possible

Categories

(Firefox for Android :: Translations, enhancement, P3)

All
Android
enhancement

Tracking

()

People

(Reporter: olivia, Unassigned)

Details

There are some mutually exclusive TranslationsStates.

This bug is to look into and refactor these exclusive states into a named enum. For example:

isTranslated, isTranslateProcessing, and isRestoreProcessing could become:

val <some-name>: <enum class> = { TRANSLATED, TRANSLATING, RESTORING, UNTRANSLATED }

Additionally, this bug should look at the possibility of an extension to map holisticly the TranslationState into a named state. The actual work for this portion would be a separate bug, but this would be a good place to look into the possibilities.

See this conversation for more details and ideas.

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.