summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PagedView.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix quickswitch flickers/ignored swipesTony Wickham2019-10-071-1/+3
| | | | | | | | | | | | | - Don't set current page to running task when applying load plan, if we are already settling on a new task to launch. - When starting a new task, finish to the running app if that's the task being started (should not happen with above change) - When disabling free scroll mode, don't snap to a page if we're already on it. This was setting mNextPage so the first check was falsing. Bug: 142068081 Change-Id: I5b392d9726a81c51718d2f94eee6cd4f78b61f69
* removed extra test protocol for unit testPinyao Ting2019-09-301-7/+0
| | | | | | Bug: 140406263 Test: run TaplTestsLauncher3 Change-Id: I73b3098bd3aa92fed41d22a94cb58fd07263d26a
* fix test for a11y change in supporting -1 pagePinyao Ting2019-09-231-0/+7
| | | | | | Bug: 140406263 Change-Id: I0a39db135a5e5b0fe570ace55a368a7f4b6cb453 Test: run TaplTestLauncher3 locally
* Revert "Revert "support scroll backward to minus one screen via voice/switch ↵Pinyao Ting2019-09-231-7/+15
| | | | | | | | | | access"" This reverts commit 3ad4ace203c73aebac98010812703dbb6879d55d. Reason for revert: roll forward and bugfixes Change-Id: Icd56cdeddb3baf9819700cc567c04af0905825ef
* Update mIsBeingDragged in onTouchEvent(ACTION_DOWN)Tony Wickham2019-09-181-17/+22
|\ | | | | | | | | | | am: a0aee21fcd Change-Id: I4e0b6c7e057421d7501f84f8c8e3544eab2b15de
| * Update mIsBeingDragged in onTouchEvent(ACTION_DOWN)Tony Wickham2019-09-181-17/+22
| | | | | | | | | | | | | | | | | | | | The logic to keep mIsBeingDragged when touching down during a scroll animation was in onInterceptTouchEvent(), which we were bypassing by using onTouchEvent() directly. Now we update mIsBeingDragged on touch down in both onInterceptTouchEvent() and in onTouchEvent(). Bug: 141024521 Change-Id: I77abd4c36f3ccee27e160c817dadb3923e6cfc06
* | Revert "support scroll backward to minus one screen via voice/switch access"Pinyao Ting2019-09-171-15/+7
| | | | | | | | | | | | | | | | This reverts commit d5af944f414588b4f964d176ebc9193f082daf7c. Reason for revert: Test failure on master that might be related to this code change. Change-Id: I269bf5b0a6505da291e1ff4ed181a851268d6ed8
* | support scroll backward to minus one screen via voice/switch accessPinyao Ting2019-09-161-7/+15
| | | | | | | | | | | | Bug: 140406263 Test: Manual Change-Id: I604b12f8ba8706cbabc28acafd6c151166832f22
* | App shortcut overlapping app icon when selecting the app using USB mouseSamuel Fufa2019-08-281-0/+4
| | | | | | | | | | | | Test: Manual Bug:113287687 Change-Id: Ib02c736a312937a9b71d5168d965446b6fc5b7b7
* | Mouse wheel scroll apps with work profile enabled instead of switching tabsSamuel Fufa2019-08-231-0/+7
|/ | | | | | Test: Manual Bug:79164903 Change-Id: I4b382034ea5b91b24dcc158bd9fa46d64f54cc7a
* Add directional accessibility page actions to PagedViewyingleiw2019-08-141-5/+26
| | | | | | | | | | | | | | | | | For PagedView, when isPageOrderFlipped is true, it means the LTR mode is flipped. For the "recents" in launcher, isPageOrderFlipped is true. However, this doesn't affect the directional page operations since scrollLeft()/Right() already has correct Rtl considerations. See b/78788182 for more information on the LTR mode. Test: Tested with the "recents" in launcher. Verified that page left action always move pages to the right (so that the next page from the left side shows), and page right actions always move pages to the left (so that the next page from the right side shows). Also tested with the home screen 1/2, 2/2 paging. Bug: 136277517 Change-Id: I965d651c37d258eaa8ea347d1ad6f698f9b590bf
* Revert the changes that prevented touch on RecentsView during animationTony Wickham2019-07-221-6/+2
| | | | | | | | | The original bug that was solving seems to be fixed by other changes, and this allows users to scroll, dismiss, etc on recent tasks before fully reaching overview from an app. Bug: 137487381 Change-Id: I28a708811bba3ce739ce261f19eb29558d8f0e7d
* Switching flinging gestures injection to model timevadimt2019-07-101-0/+2
| | | | | | This is a right thing to do in any case. Change-Id: I34eeecac6d9eb13130eb1015f9a9a5e2a32974ec
* Fix issue where can't interact with Workspace while App => Home is runningAdam Cohen2019-07-061-3/+6
| | | | | | | | | => Regression from recent CL ag/8074890 => Fix which scopes the change down to the RecentsView, but not all PagedViews Bug 136733573 Change-Id: I0abaa61b2b132d8086dc3b2cb3e3e9c1f181b5f5
* Cleaning up some animation states:Sunny Goyal2019-06-211-3/+5
| | | | | | | | | | | | > When running one-off animations during quickstep, cancelling prevoisly running animations. > Cancelling such one-off animations when state is reset > Preventing touch proxied from recent transition to affect quickswitch (by affecting pagedView) Bug: 135686388 Bug: 135571566 Change-Id: Id647015a583761d8fd46a02e3e2d88027e282a79
* Set mNextPage after springBack when overscrollingTony Wickham2019-06-181-0/+1
| | | | | Bug: 134609899 Change-Id: I74294655689c4ccd66896550b74e205d1c3df543
* Continue gestures on interaction after recents animation finishesWinson Chung2019-05-061-0/+4
| | | | | | | | | | | | | | - Detect when start of the next task is interrupted with another gesture (after finishing the recents animation but before the next task is launched), and ensure that the next gesture is continued with another other activity input consumer (but without actual remote animation targets) Bug: 128376812 Test: Introduce artificial delay in recents animation finish, try to quick switch quickly Change-Id: I057a0b2c4b7e8636467e37f5bbc8800b46c24345
* Enabling quick-switch gesture in landscape mode (2 button UI)Sunny Goyal2019-04-291-3/+1
| | | | | Bug: 130689544 Change-Id: I6b424be4d80b3bf8263f456a024a81c63100030e
* Log undo button clickTony Wickham2019-04-251-2/+6
| | | | | | | | | | Also fix a bug where we logged workspace swipe upon clicking undo, since rebinding the pages causes us to reset mCurrentPage = 0 followed by setCurrentPage(pageBoundFirst). Since the page isn't actually visibly changing, we shouldn't log in that case. Bug: 118758133 Change-Id: Ie87164a8c7c278680f67dee75657210bd33408a4
* Hide Clear all button during quick switchTony Wickham2019-04-241-24/+52
| | | | | | | | | | | | | | | | - Add support for mMinScrollX to PagedView - Add RECENTS_CLEAR_ALL_BUTTON as a state-specified visible element - In BackgroundAppState, set Clear all invisible and bound RecentsView scroll to the last task Test: - Open an app, quick switch until reaching the end, ensure Clear all does not show up and an overscroll effect is performed - Enter overview, scroll to the end and ensure Clear all shows up - Same tests in RTL and 3rd party launcher Bug: 130160876 Change-Id: I5fb958744d0055b83ced1f8b0d7face0e06a0cc5
* Remove PagedView#isTouchPointInViewportWithBuffer()Tony Wickham2019-04-091-15/+1
| | | | | | | | | It's no longer necessary, and causes issues when trying to scroll a PagedView that only takes up the bottom half of the screen (e.g. RecentsView in split screen mode). Bug: 126606858 Change-Id: I117dfe9416cdeef1247d6e783390cf5c391e8254
* Fix issue with flashing on overscrollWinson Chung2019-03-011-1/+2
| | | | | | | | | - Apply the bounded current scroll to the overscroll instead of assuming the max scroll (on the last tick, the overscroll amount can be zero, causing us to shift to the max scroll until the next draw) Bug: 126767319 Change-Id: Ia60ecb0c3f18e68d0c91620aa79b21df72c213cf
* Fix small issue with overscroll not being dampened on the left edge.Winson Chung2019-02-251-2/+2
| | | | Change-Id: I113425e6bae2ff6f6f143526a7e06363fb8d4320
* Passing all events to RecentsView instead of passing the calculated velocitySunny Goyal2019-02-201-7/+3
| | | | | | | Velocity tracker is able to calculate the velocity using cached copy of motionEvent as long as the event as correct timeStamp Change-Id: I2b0f612e010fdfcf144d5bed928c5a96b36f3ac7
* Make quick switch ("hook") more reliableTony Wickham2019-01-291-1/+1
| | | | | | | | | | | | | | | - Add max orthogonal displacement to MotionPauseDetector to avoid pausing when swiping left or right - When gesture in ambiguous between swipe up for home or swipe over for the new task, base the decision on the faster velocity component - Disable recents freescroll mode when dispatching motion from the nav bar. This way recents handles it naturally and we don't need custom logic to snap to the next page at the end of the gesture. - Fix a bug where you couldn't hook to start a new task when SWIPE_HOME was disabled Bug: 111926330 Change-Id: If63aa2bb32b57c3f401c5df8b3f6f4efec97b1fa
* Passing proper velocity information when simulating touch events on recents viewSunny Goyal2019-01-281-3/+7
| | | | Change-Id: I488b8d61c47e49dbdc65b16e2470b171912efc3f
* Add springs when snapping between pages on the workspace.Jon Miranda2019-01-241-7/+54
| | | | | | | | | - Behind feature flag QUICKSTEP_SPRINGS - Springs control settling the page and allow for overscroll for the first/last pages Bug: 111698021 Change-Id: Ib4a9ef59463cc46e31ac0766bf7705612f6c63c1
* FeatureFlag: quick scrub is now quick switchTony2018-11-011-0/+8
| | | | | | | | | | | | - Scale down current task and translate it to the left - Translate previous task in from the left - This is a toggle; quick switch again returns to the first task Currently this is implemented by repurposing onQuickScrub(progress) to update the positions of the first two pages. This makes tracking velocity a bit difficult; if we want to go down this path in the long run we should probably track velocity properly on MotionEvents. Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
* Reading window_animation_scale from Settings.GlobalTony Wickham2018-08-271-2/+2
| | | | | | | It moved from Settings.System, so there were constant warnings in the logs. This only affects dogfood builds. Change-Id: Ic3c179837f78a8040579fcc6ad485f6fabe1c2a1
* Adding overscroll in recents viewSunny Goyal2018-08-101-75/+65
| | | | | Bug: 109828536 Change-Id: I4fe94bd157c2b65f80604751e6f0f7d5d81d058d
* Removing unused touch handling in PagedView so that it is similar to various ↵Sunny Goyal2018-08-081-48/+16
| | | | | | | platform class Bug: 109828536 Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
* Revert "Adding overscroll effect in recents list"Santiago Etchebehere2018-06-151-9/+57
| | | | | | | | This reverts commit 4d6b1a95a13fd6f5b293ba97051bc645fab95334. Bug: 110279118 Change-Id: I794b2c7af076d63901f2286fd2ff3d06c6e39fee
* Adding overscroll effect in recents listSunny Goyal2018-06-111-57/+9
| | | | | Bug: 109828536 Change-Id: If2b65cfc2b7f14deb721436f7aa378c4a2c5c468
* Moving clear all button inside the recents viewSunny Goyal2018-06-111-26/+16
| | | | | | | Bug: 72222505 Bug: 109828536 Change-Id: I843b79db3e47abc2c41ed78f186b9c941941ddef
* Various quickscrub fixesSunny Goyal2018-05-291-0/+4
| | | | | | | | | | | | | > Fixing PagedView resetting the currentPage, if scrollToPage was called before first layout This causes quickscrub to jump back to the current task if launcher activity was dead. > Fixing missing callbacks in DeferredTouchConsumer causing missed quick scrub flings > Sending the resents animation callbacks on the motion queue thread, to avoid synchronization issues with sysui callbacks. > Waiting until the recents animation is received before starting the scale down animation > Calculating the offset for quickscrub statically incase launcher activity was dead Bug: 80214390 Change-Id: I1b7d00b7b266655a92fcd6239f25ba191655150f
* Reporting range of visible tasksVadim Tryshev2018-05-251-0/+31
| | | | | | | | | Also fixes task position being incorrectly reported specifically for swipe events due to using stale getCurrentPage(). Bug: 72222505 Test: Manual Change-Id: Ic79b67f8a6ffbfabc397b411b14afc309405197e
* Increasing the overview size while in QuickScrub modeSunny Goyal2018-05-231-3/+1
| | | | | Bug: 80139193 Change-Id: I19ea05d3cc083628364651e9d9f581fe1aaaeaaa
* Remove code duplicationVadim Tryshev2018-05-181-22/+14
| | | | | | Bug: 72222505 Test: Manual Change-Id: I6ae6ac7474b44c16bd765635e32d2e843bc02cac
* Merge "Fixing reverted order of accessibility scrolling in Recents" into ↵Vadim Tryshev2018-05-191-7/+30
|\ | | | | | | ub-launcher3-edmonton
| * Fixing reverted order of accessibility scrolling in RecentsVadim Tryshev2018-05-071-7/+30
| | | | | | | | | | | | Bug: 78788182 Change-Id: I275381e65bbd2fa24e427fea0bb9ca44366e0357 Testing: Manual
* | Fixing Recents sometimes restoring in Clear-all-reveal position.Vadim Tryshev2018-05-161-1/+1
| | | | | | | | | | | | | | | | This happened if a task was added between openings of Recents. Bug: 72222505 Test: Manual Change-Id: Id4cc8e7cbdb493973d329466369b62e4ac8ee0b3
* | Merge "Tune quick scrub" into ub-launcher3-edmontonTony Wickham2018-05-151-1/+9
|\ \
| * | Tune quick scrubTony Wickham2018-05-151-1/+9
| |/ | | | | | | | | | | | | | | - Change durations/interpolators when starting from home vs an app - Increase dim animation duration after quick scrub from an app - Also fixed contention between setting dim alpha for the animation and setting dim alpha for scrolling Change-Id: I2c9ea52d4eafaad8954f3ff9d3c0c459a07953bc
* | Keep clear-all button revealed after dismissVadim Tryshev2018-05-151-4/+12
| | | | | | | | | | | | | | | | | | | | If it was visible before the dismiss, it will be visible after that. As a nice side effect, it will preserve visibility on any layout, say, after a rotation. Bug: 79117932 Test: Manual Change-Id: Ia8a544af1326458d4e2d7a07ae2b668f604bc0b3
* | Scrolling on the most recent task upon Overview startVadim Tryshev2018-05-141-9/+8
|/ | | | | | | | | | | | | | Fixes this problem: 1. Open a single task in Recents 2. Dismiss via Clear-all 3. Start a task 4. Press Home 5. Press square button get Recents revealing Clear All button Bug: 79117932 Test: Manual Change-Id: I47bcc50cb72f1757025d2abac0196460e0bb3f36
* Settling scrolls over clear-all button.Vadim Tryshev2018-05-021-5/+13
| | | | | | | | | | Per UX feedback, we divide the "overscroll area" 50/50 and settle to the closest of the most recent task position and the fully scrolled position. Bug: 72222505 Test: Manual Change-Id: Ic98fa5ae2f14f274f6a425ac687f13f7b3a4332e
* Fixing task misalignmentVadim Tryshev2018-04-271-4/+3
| | | | | | Bug: 78793769 Test: Manual Change-Id: I49f8213bf412f63fc296a8be5bd49950e4c01175
* Enable Clear-all button by defaultVadim Tryshev2018-04-271-7/+12
| | | | | | | | Making it work with all 4 combinations of RTL and flip-recents. Bug: 72222505 Test: Manual Change-Id: Ifb2428e006674abfe9a2609fd3d8f3f648eff0b8
* Improving highlight for Clear-all button.Vadim Tryshev2018-04-251-5/+0
| | | | | | | | Better shape + now has hover state. Bug: 72222505 Test: Manual Change-Id: I24ba55c760b15d71406a35ea5f7bf54f505741d6
* Removing accessibility description from page indicatorsVadim Tryshev2018-04-171-6/+0
| | | | | | | | | | | The current page is announced upon switching to it. Is should be done this way for all future page implementations with indicators. Bug: 77827828 Change-Id: I8ba3bd9d068954df51d6de45da79133ede12c96d Test: Manual Merged-In: I8f2f163a261dd7098939674d39e014236fc66d5d