1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/home
Grisha Kruglov b26ac51e90 For #10494: Process HomeMenu builder changes on the main thread
Problem was that we were trying to process menu changes (in response to account manager events) on some background thread as that's what account manager emits them on, so some code internally in PopupWindow's dismiss handling (i think, didn't dig very deeply here) was silently giving up and we'd get into a bad state.

The reason this seemingly only happened if you quickly opened a menu on startup is because account manager isn't initialized until sometime after the startup finished. So the trick was to open the menu (and register account manager state callbacks) before it got initialized, so that the callbacks are invoked.

This should also reproduce in other, much more obscure ways, e.g. if you open the menu right before sync is scheduled to run in the background, change FxA password on another connected client, and then eventually receive a onAuthenticationProblem callback.
2020-05-22 13:50:57 -07:00
..
intent For #7661: Add variant-specific schemas for deep links 2020-03-17 17:21:09 -04:00
sessioncontrol For #8125: Add default top site telemetry (#10752) 2020-05-22 13:10:09 -07:00
tips For #9208: Adds in-product prompt to homescreen (#9836) 2020-04-22 14:29:43 -07:00
HomeFragment.kt For #10504 - Removes "old" TabTrayFragment 2020-05-21 15:17:20 -07:00
HomeFragmentStore.kt No issue - Remove unused data class TopSiteItem 2020-04-29 18:06:02 -07:00
HomeMenu.kt For #10494: Process HomeMenu builder changes on the main thread 2020-05-22 13:50:57 -07:00
HomeScreenViewModel.kt Don't use ProcessLifecycleOwner for view-tied consume 2020-04-20 12:07:37 -07:00
ImageViewTopCrop.kt No issue: Normalize license header comment (#3909) 2019-07-12 11:38:15 -07:00
Mode.kt Part 3: Mark accountManager as 'lazy' in Mode.kt 2020-03-30 21:43:38 -07:00
PrivateBrowsingButtonView.kt fix #8135 - remove getColorFromAttr 2020-03-02 15:48:33 -07:00
SharedViewModel.kt For #9044 - Replace DownloadNotificationBottomSheetDialog with unobtrusive view 2020-05-21 10:02:51 -04:00