summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PinchAnimationManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing QsbBlockerViewSunny Goyal2017-06-061-6/+3
| | | | | | | | | > Removing workspace state change listener. State change happens with hardware layer, so children should not be calling invalidatge() during the animation > Moving QSB inside the QSB and removing a floating layout Bug: 37616877 Change-Id: I9af3522a05dafa5796586bb64f512d98688caf79
* Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-161-1/+3
| | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* Using java_style enum generation for protoSunny Goyal2016-12-151-5/+6
| | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* Bug fix: QSB sometimes gets stuck to transparent.Sunny Goyal2016-11-241-2/+10
| | | | | | | | | | | | | | | | | | At some places, we were calling removeAllListeners before calling cancel on an animation. AnimationListeners are also used to track states, and removing listeners before canceling will prevent onAnimationEnd to be called, thus preventing state cleanup. PinchAnimationManager was causing ZeroAlphaAnimatorListener to be removing from Qsb alpha animation, making the MultiStateAlphaController think there is a zeroAlpha animation running. > Removing all instances of removeAllListeners > Updating various affected listeners to handle onAnimatinoCancel > Fixing WorkspaceStateTransitionAnimation, which was animation QSB alpha on page scroll index Bug: 31910152 Change-Id: Ie7f31b67d4c502badcdd41f7b04867d1f35f5d27
* Moving saving state transtion listener logic to individual viewsSunny Goyal2016-11-141-1/+1
| | | | Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
* Removing custom dispatchDraw logic and letting the system handleSunny Goyal2016-10-261-10/+5
| | | | | | | | | | | | | | selecting appropriate children for drawing. > System already skips children which are outside the bounds. Originally this logic was added because workspace layout is larger than the screen, and we need to selectivly skip more children. But over time we have added many special conditions and at present workspace actually draws more children than needed at any given time. > Fixing bug, where onBeginPageMoving was getting called during folder open Bug: 12116740 Change-Id: Idee18ee9cd9d348ebc4dfd82f4ff6df14e0d22d2
* Added logging for pinching in/out b/w workspace and overview.Jon Miranda2016-10-051-0/+8
| | | | Change-Id: I50f81a8a7841addef652cba2c448d09f3341c8b2
* Fixing some commentsSunny Goyal2016-07-141-3/+3
| | | | Change-Id: I9e6eaaf9ee145e2f37dfb97a3259509a72cd73af
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-7/+6
| | | | | | | | This allows better edge matching for the QSB. The QSB position is kept synchronized with the page scroll and all-apps transition. But its not visible in spring loaded and overview mode Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-271-8/+0
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Making page indicator an abstract class and implementing some common methods.Sunny Goyal2016-05-201-1/+1
| | | | Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
* Add PageIndicator interface and custom PageIndicatorLine view.Tony Wickham2016-05-171-1/+1
| | | | | | | | | | | | | - The current PageIndicator has been renamed to PageIndicatorDots and PageIndicatorMarker has been renamed to PageIndicatorDot. - PageIndicatorDots and PageIndicatorLine implement PageIndicator. - PageIndicatorLine uses scroll progress and number of pages to draw a line of the correct size and position. - All of these page indicator files are now in a pageindicators package. Bug: 27227498 Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
* Call onLauncherTransitionPrepare() and End() from pinch.Tony Wickham2016-05-121-17/+14
| | | | | | | | | | | | | | This makes the pinch transition more consistent with other transitions. One immediate benefit of this is that it updates adjacent overview panels during pinch, regardless of whether they are completely visible. Previously the adjacent panels' alphas weren't always reset to 0. Specifically, if you made a small pinch from workspace, which canceled and went back to workspace, adjacent pages retained a slightly visible panel. Bug: 27676309 Change-Id: I7e79fddec31cd649e0811e4524b9a9a501c627f9
* Merge "Added copywrite comments to pinch-related classes." into ↵Tony Wickham2016-03-251-0/+16
|\ | | | | | | ub-launcher3-calgary
| * Added copywrite comments to pinch-related classes.Tony Wickham2016-03-171-0/+16
| | | | | | | | | | | | | | | | Maybe we should write a script that checks that this is present in all our files? I didn't do a thorough check, but wouldn't be surprised if others were missing. Change-Id: I4777ff618f952b9b11fde60ebc8d897cf6449032
* | Preventing unnecessary object creationsSunny Goyal2016-03-241-98/+42
|/ | | | | | | | > Only creating the animator when required > Canceling a previously running animation when starting a new one > Directly setting LinearInterpolator instead of using null Change-Id: I4f5f25f26dfed9b5c78665af4e74dd565b4cd805
* Pinch to zoom out into overview mode.Tony Wickham2016-03-041-0/+285
There are 3 classes coordinating the gesture: PinchToOverviewListener, PinchThresholdManager, and PinchAnimationManager. - PTOL listens for the pinch gesture on DragLayer. - When a pinch is detected, the PTOL keeps track of the interpolated progress and passes it along to both the PTM and PAM. - The PTM uses the progress to determine whether a new threshold has been passed, and tells the PAM to animate it if so. - The PAM uses the progress to animate things like workspace scale throughout the pinch. - If the pinch ends early, the PTOL uses the last passed threshold to determine whether to animate to workspace or overview, and tells PAM to perform the animation at the same velocity as the pinch. Bug: 24414635 Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0