Fixing All Apps's getting stuck in a non-updating state
Normally, if all apps is open, and an app installs/uninstalls/updates, All Apps will immediately reflect this. However, depending on something subtle in the intensity of the swipe gesture that brought All Apps, all apps will freeze, and won't update. This frozen state will go away after scrolling in all apps, iteration with an icon and, generally, any tap interaction with All Apps. Otherwise, it will stay until it's closed and opened again via a gesture with a different pattern. The reason is in the code that freezes All Apps updates during user interactions with all apps. For example, during scrolls. Or while the user holds an icon, expecting to see a context menu; in this case an update would cause the menu to not appear, which is somewhat annoying. The motivation to add this code was to solve a category of lab-only flakes when a context menu couldn't open because the lab device was busy with post-flash activities. The code incorrectly assumed that after ACTION_DOWN, we are guaranteed to get either UP or CANCEL, which is wrong. It's after *consumed* ACTION_DOWN that we'll get these events. The fix still solves the user's and tests' problems that the code was supposed to solve. Bug: 134442147 Change-Id: I9db74a33ecf93b1dc6bc69df301f7f542dea2a40
Loading
Please register or sign in to comment