* This patch removes the secret setting to turn on translations and
removes the usage.
* Nimbus feature defaults for translations are all set to false.
The current onboarding CFR is set to show the first time someone
lands on a product detail page. If the user dismisses the CFR and
does not opt-in, we show it on the next product detail page after at
least 24 hours have elapsed.
This patch changes this to showing the CFR up to 3X (instead of 2)
with at least 12 hrs in-between (instead of 24).
This commit integrates the Firefox Suggest Android component added in
bug 1850296 into Fenix, and adds:
* A Nimbus feature for Firefox Suggest.
* A secret setting to enable the Firefox Suggest feature, only visible
on the debug channel.
* Search settings for toggling sponsored and non-sponsored suggestions,
only visible when the Firefox Suggest feature is enabled.
When the feature is enabled, Fenix will ingest new suggestions in
the background, show the new Search settings, and show matching
suggestions in the awesomebar depending on those Search settings.
Previously, the way we registered if the user has installed the
search widget was keeping a count that increments every time
the widget was added and decrements everytime it was removed. The
main problem here was the wrong usage of onEnabled and onDeleted.
This patch aims to move towards a boolean based preference and use
the provided onDisabled method together with onEnabled. The logic
here is as follows: When the first instance of the widget has been
added, onEnabled will be called and the preference set to true and
no matter how many widgets are present on the homescreen, it will
stay true. When the last widget is removed, onDisabled will
be called and the pref will be set to false.
This patch adds a feature flag of `translations` and a debug preference
of `pref_key_enable_translations` for developing translations.
Currently, the feature flag guards the option to enable translations and
is set to debug channels. These options will slowly adjust for wider
audiences as development progresses.