fenix/app
Grisha Kruglov 233f0a8a1d Closes #21871 - Eagerly update UI state after search group removal
Before this patch, this was the behavior - 'remove' button is clicked, we'd ask
the storage to remove metadata (on its IO thread), then navigate to Home
Screen.

This resulted in a race we could end-up on the Home Screen before delete
finishes, so the search groups do not appear to be removed (but,
refreshing the Home Screen again shows that they are removed).

This also resulted in an unnecessary navigation which felt very janky
(screen will "scroll" to the top) and was way more work than necessary.

After this patch, we:
 - dispatch two actions (on browserstore, on homefragmentstore) which
   remove the search groups from any relevant in-memory state; any UI bound to
   this state will be automatically "refreshed"
 - no longer navigate as part of the remove action, so the UI doesn't
   move and removal happens "in-place"
2021-10-13 15:45:00 -04:00
..
sampledata For #7092: Add initial Migration UI 2020-01-15 21:41:01 -08:00
src Closes #21871 - Eagerly update UI state after search group removal 2021-10-13 15:45:00 -04:00
.gitignore Initializes Android project 2018-12-07 15:25:38 -05:00
benchmark.gradle For #19901: correct spacing in comment on how to run 2021-07-22 15:24:35 +00:00
build.gradle For #21593 - Persist stories categories selections in a Proto DataStore 2021-10-04 11:54:42 +00:00
lint-baseline.xml For #21413 - Remove unused OnboardingPrivateBrowsingViewHolder and OnboardingWhatsNewViewHolder 2021-09-22 14:20:16 +00:00
lint.xml For #21861 - Ignore the UnusedResources lint check for localized strings 2021-10-12 14:48:47 +00:00
metrics.yaml For #21313: Renew fission metrics expiring in December 2021-10-09 03:42:00 +00:00
pings.yaml For #20596 remove startup timeline probes 2021-08-22 00:57:10 +00:00
proguard-rules.pro For #20824: use fast service loader for MainDispatcherFactory. 2021-08-18 03:59:44 +00:00