History log of /packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
966d901af0fd319aa2b62d6abccc5ac728e68423 07-Jun-2017 Sunny Goyal <sunnygoyal@google.com> Removing QsbBlockerView

> 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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
9e76f682f3e52afa1f11172564b883c7dfda5063 13-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead

Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
6c46a6d324310bd2fc0ea223c9782ba6394512e7 22-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Using java_style enum generation for proto

This makes it easier to track various method parameters and simplifies
debug logging

Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
1c581c6d61ad51df26390027725521289bd9ce4a 24-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Bug fix: QSB sometimes gets stuck to transparent.

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
db364379312e56a3a3905a54d0de783062a92a73 27-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Moving saving state transtion listener logic to individual views

Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
9ccafbff26f5835ab9725d876d1bf7ccd08ccf84 26-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing custom dispatchDraw logic and letting the system handle
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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
c4de137793b5031523fe9e20ba6e3817d695afeb 06-Oct-2016 Jon Miranda <jonmiranda@google.com> Added logging for pinching in/out b/w workspace and overview.

Change-Id: I50f81a8a7841addef652cba2c448d09f3341c8b2
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
857bfcf3247ef765e16ce595c10e4c1fa5c2a69b 15-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Fixing some comments

Change-Id: I9e6eaaf9ee145e2f37dfb97a3259509a72cd73af
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
6178f13e2d1f0c1a89cea74538b51993ef3439e3 12-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB out of the cell layout to the Drag layer

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
da4fe1a6244457f144e0a331cada3ada17157809 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB to the workspace grid.

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
c487bd34ace268dd8be5480ba884baed6096f76e 20-May-2016 Sunny Goyal <sunnygoyal@google.com> Making page indicator an abstract class and implementing some common methods.

Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
f549dab31d0fa3e4d0cf8d6025b20e49aafb2d59 16-May-2016 Tony Wickham <twickham@google.com> Add PageIndicator interface and custom PageIndicatorLine view.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
f898b970cc9130d629d4bc969222aaa96a8a013a 06-Apr-2016 Tony Wickham <twickham@google.com> Call onLauncherTransitionPrepare() and End() from pinch.

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
676e29ce5d4bb2a38aca704db2855f2d73e09cc5 25-Mar-2016 Tony Wickham <twickham@google.com> Merge "Added copywrite comments to pinch-related classes." into ub-launcher3-calgary
ed268c2c89c94098942ba04fd4cb90310743614a 24-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Preventing unnecessary object creations

> 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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
1743ac469113301f6cf0e7c2e4fff4fb16812bbb 17-Mar-2016 Tony Wickham <twickham@google.com> Added copywrite comments to pinch-related classes.

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java
dadb304b4682998c43b9c07bef45b9a9380f3287 24-Feb-2016 Tony Wickham <twickham@google.com> Pinch to zoom out into overview mode.

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
/packages/apps/Launcher3/src/com/android/launcher3/PinchAnimationManager.java