Proper fix for gesture nav flicker using runOnPageScrollsInitialized()
I root caused the two areas causing the flicker: A. If page scrolls aren't initialized when we get onActivityInit(), the first scroll even after linkRecentsViewScroll() will jump based on min scroll (due to Clear all button). Fix is to defer linking until page scrolls are initialized. B. If page scrolls aren't initialized when the gesture starts, RecentsView can jump to the min scroll when calling showCurrentTask(), since that calls setCurrentPage(getRunningTaskIndex()) which might be out of bounds. Fix is to defer that setCurrentPage() until page scrolls are initialized. Test: open a random app that hasn't been opened in a while, touch down on nav handle and see if RecentsView scrolls partially or fully offscreen; repeat 20 times to be sure Fixes: 233112195 Change-Id: I000960775f8735920d97c87942065a430c9dce0c
Loading
Please register or sign in to comment