summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove LAUNCHER3_ALL_APPS_PULL_UPHyunyoung Song2017-08-211-18/+6
| | | | | | | | Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works. Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
* Optimizations to reduce all apps jank.Jon Miranda2017-08-021-2/+4
| | | | | | | | | | * Since adding springs to the apps in All Apps, it is no longer efficient to build a hardware layer for it. * Pre-uploads bitmaps to RenderThread. * Only add overview animations if we are transitioning to/from it. Bug: 63711551 Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
* Remove extra call to AllAppsContainerView#reset.Jon Miranda2017-07-241-3/+1
| | | | | | | | | We were calling reset twice: * LauncherStateTransitionAnimation#startAnimationToWorkspaceFromAllApps * AllAppsTransitionController#finishPullDown Bug: 63711551 Change-Id: Ib695332f537c270ecd3a67c4369fe90b8761032a
* Removing long press support from page-indicatorSunny Goyal2017-06-151-8/+1
| | | | | | Bug: 62445549 Bug: 38163974 Change-Id: Ic0ae44ded7e4755c5401f327ce0d98a9ea96b2ab
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+1
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Merge "Revert "Temporary fix for Widgets in battery saver mode."" into ↵Jonathan Miranda2017-03-161-6/+0
|\ | | | | | | | | | | | | | | ub-launcher3-dorval am: d8ea01ccf0 Change-Id: I8592ea63a61b284c5b740b6d9898c43bcbe44747
| * Revert "Temporary fix for Widgets in battery saver mode."Jonathan Miranda2017-03-161-6/+0
| | | | | | | | | | | | | | | | Note: b/36157561 has been properly fixed. This reverts commit 08d8bb9cde705ef66561fb2dbed0af7af2632812. Change-Id: I55e04283d2013f965afc17bcb0482a50440a96ee
* | Temporary fix for Widgets in battery saver mode.Jon Miranda2017-03-151-0/+6
|\| | | | | | | | | | | am: 08d8bb9cde Change-Id: If816544f1a115f5d3882b4335b747cae29a0205a
| * Temporary fix for Widgets in battery saver mode.Jon Miranda2017-03-151-0/+6
| | | | | | | | | | | | Bug: 36246234 Bug: 36240579 Change-Id: Iced0ea87333011aef1dbdadd0036427207e377d9
* | Moves OutlineProvider / Animation files to anim package.Jon Miranda2017-03-031-1/+1
|/ | | | Change-Id: If444bbc71009510ded54d50ef746717f6c8b277f
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-68/+35
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Moving saving state transtion listener logic to individual viewsSunny Goyal2016-11-141-210/+40
| | | | Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
* Calling buildLayer only on views which are actually visibleSunny Goyal2016-10-261-103/+17
| | | | | | | > Creating a common listener for handling buildLayer logic Bug: 30138067 Change-Id: I803ef78b48e07e5ae5922e0392d390f274a87d75
* Add logging for long presses. Reset elapsed timer when changing containers.Jon Miranda2016-10-051-0/+2
| | | | | | | | This is the first CL in a series of logging-related CLs. Upcoming CLs will include using Commands (HOME_INTENT, BACK) and "tapping outside" of a container logic. Change-Id: I62f0a08c7a9d9fce0baa5c12c67e21f63ab16a7c
* Fix hotseat flicker when opened all apps in landscape, rotate screen, pull downHyunyoung Song2016-08-051-1/+0
|\ | | | | | | | | | | am: d7d740287f Change-Id: Ie5f36dee1fd63fc4f5e92c790ae7fff80f8730c3
| * Fix hotseat flicker when opened all apps in landscape, rotate screen, pull downHyunyoung Song2016-08-041-1/+0
| | | | | | | | | | | | b/30595452 Change-Id: Ib634ffbc509c6b16ac58c184ccbca15ae936be14
* | Change interpolation logic to all apps transitioning on flingHyunyoung Song2016-08-031-36/+40
|/ | | | | | | | b/30486958 Cleaning up/refactoring this CL will be done in polish branch. Change-Id: Ib51633a1e1cb79f58b505f835053ef238ae1bdec
* Responsive caret drawableHyunyoung Song2016-07-281-1/+1
| | | | Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239
* Change default animation duration for all apps open and close.Hyunyoung Song2016-07-271-2/+5
| | | | | | > Also set different interpolator for all apps opening clicking the caret Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
* AllAppsTransitionController always use LauncherStateTransitionAnimationHyunyoung Song2016-07-271-6/+6
| | | | | | b/30375760 Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
* Ensure we still build the hw layers when pulling up all apps.Winson2016-07-221-7/+51
| | | | Bug: 30310330 Change-Id: I0d9f2fe01230bdb333c098b5515fc196ac2da2dc
* Update shortcut animations.Tony Wickham2016-07-191-5/+5
| | | | | | | | | | | - Open animation: shortcuts reveal using modified circular reveal (so that it reveals in the pill shape instead of a circle); slight translation away from the original icon; scale icon and text. - Hover animation: scale the shortcut pill and translate others away. Bug: 28980830 Bug: 30127368 Change-Id: I8ed05c7a082f2c2a3f6c663da7259f6cd33e394f
* Fixing adjascent pages not visible when starting animationSunny Goyal2016-07-151-2/+2
| | | | | Bug: 30125058 Change-Id: I99167b7c169479d06408f441e23b804077487975
* Adding stateful caret drawablePeter Schiller2016-07-141-1/+1
| | | | Change-Id: Iba30da09f882297f789c405f932fef10617bba89
* Fix all apps becoming clipped when screen is rotated with all apps opened.Hyunyoung Song2016-07-121-2/+6
| | | | | | b/30040068 Change-Id: I5e89a82310fddd5aa89a8f5d855b2efa526f8244
* All apps pull up workHyunyoung Song2016-06-211-19/+13
| | | | | | | | | | | | | | | | b/28917826 b/29469966 b/29542376 - Move state transition to when the finger is lifted and not when the view settles. - Refactor the vertical pull detector to use bit operation to define which direction scroll to allow. - Fixed many issues regarding screen rotation - Fixes issue where slowly sliding the all apps goes into overview mode - Fixes issue where quick slide up leads to animation starting from middle Change-Id: I2384a0fcc5550e17359a044ef506bcc66507da5f
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-2/+2
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* UI fixes to All apps pull up workHyunyoung Song2016-06-151-15/+4
| | | | | | | | | | | | | | | | | b/28917826 - nav bar change to light when top of the all apps container passes y mid point of the status bar - apps search edit box change when top of the all apps passes the bottom of nav bar - Restrict pull up to work only if the ACTION_DOWN event started from the hotseat. - Landscape: reverted old padding and margin. Only the interaction is different. - Tuning of the motion spec - Animation duration respects fling speed more agressively. - and many more small bugs... Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
* Fixes to all apps pull up workHyunyoung Song2016-06-081-10/+15
| | | | | | | | | | | | | | | | | | | | b/28917826 - 2+ workspace page also slides up - pull up touch interaction doesn't trigger only when yslop > xslop - animation duration should be set independently when all apps button is used. - workspace state is correctly set (drag and drop from the trays work) - after lock screen, hotseat is positioned correctly - Remove initial jump when sliding up - Improved tuning on sliding - Alpha value set differently on backbround and content of all apps Still not fixed: - Landscape - Search edit text box styling - All apps scroll bar Change-Id: I817094b0f1ada5052ee604539459f556a99cadf1
* Fix NexusLauncher NPEHyunyoung Song2016-06-071-1/+1
| | | | Change-Id: Ieb1144487841d7ea4ae880bf8e6c2334a2145e7e
* Merge "Removing the SearchDropTarget bar as it no longer contains the QSB" ↵Sunny Goyal2016-06-071-6/+0
|\ | | | | | | into ub-launcher3-calgary
| * Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* | Guard all apps pull up work behind the flagHyunyoung Song2016-06-061-1/+3
|/ | | | | | b/28917826 Change-Id: Ic001d820bad777d90c6bdcd1a17b6961e38769be
* Pull up all apps interactionHyunyoung Song2016-06-061-45/+159
| | | | | | | | | | | | First phase implementation: dragging and animation interaction is implemented namely in two classes. ScrollGestureDetector and AllAppsTransitionController. FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and not in the extending builds. This way, we can safely iterate without turning it on the shipped ready version. b/28917826 Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
* Call onLauncherTransitionPrepare() and End() from pinch.Tony Wickham2016-05-121-8/+13
| | | | | | | | | | | | | | 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
* Refactor UserEventDispatcher (1/2)Hyunyoung Song2016-04-191-4/+4
| | | | | | b/28269657 Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
* Invalidate scrim throughout animation from overlay to workspace.Tony Wickham2016-03-281-0/+11
| | | | | Bug: 27135377 Change-Id: I19e947ac271063beaa6c5d11906631d0afcbb781
* Merge "Changing the widget loading strategy" into ub-launcher3-calgarySunny Goyal2016-03-101-1/+1
|\
| * Changing the widget loading strategySunny Goyal2016-03-091-1/+1
| | | | | | | | | | | | | | | | | | Widget is loaded only when the user enters the overview mode and we keep the list updated as long as the user is in the overview mode. Once the user leaves the overview mode, we stop responding to widget updates Bug: 26077457 Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
* | Add getUserEventLogger to LauncherCallbacksHyunyoung Song2016-03-081-1/+15
|/ | | | | | b/26494415 Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
* resolve merge conflicts of 3826bab27e to ub-launcher3-calgary.Sunny Goyal2016-02-101-117/+54
|\ | | | | | | Change-Id: I14ff2d67de4ba97628bdf651602724f9f4989173
| * Merging search bar with all appsSunny Goyal2016-02-081-104/+49
| | | | | | | | Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
* | Merge "Disallow scrolling if workspace is in transition." into ↵Tony Wickham2015-12-021-3/+3
|\| | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: ac929f4ad8 * commit 'ac929f4ad80fabeddfae51e30ec5d7ff434652c8': Disallow scrolling if workspace is in transition.
| * Disallow scrolling if workspace is in transition.Tony Wickham2015-11-191-3/+3
| | | | | | | | | | | | | | | | | | | | Because going to overview mode scales down the workspace, it was thinking the touch was moving even though your finger was still. If the "movement" was large enough, it was treated as a scroll, causing jank. This was especially prevalent on tablets due to their size. Bug: 25779718 Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047
* | Play common transition animations from a common method.Tony Wickham2015-10-121-44/+32
| | | | | | | | | | | | | | | | | | | | | | | | There are 3 animations that 3 different transitions use; to prevent future problems, let's put them all in one place. For instance, ag/781127 added dispatchOnLauncherTransitionStepAnim() to the two transitions that existed in burnaby-polish, but not to a third, startAnimationToNewWorkspaceState(), that was added in master. If a common method existed in polish, the new animation would have merged into master automatically instead of forcing us to remember to add it. Change-Id: I7775aaa43a08ae8b8241b0eeb77b6c84167c5ff0
* | resolved conflicts for f685c7e5 to ub-launcher3-masterTony Wickham2015-10-121-1/+27
|\| | | | | | | Change-Id: Iddf78c166f9ab89ffae2ddc819c9ba5cf5e988be
| * Actually call LauncherTransitionable.onLauncherTransitionStep().Tony Wickham2015-10-051-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, it was only called at the start and end of the transition; now it is called as the animation interpolates. Specifically, a dummy ValueAnimator is played alongside the transition animation and calls dispatchOnLauncherTransitionStep() as it goes. One place where this is important is in Workspace, where mTransitionProgress is used to determine things like whether the workspace should accept a drop - hence the bug that caused apps dragged from All Apps to vanish when dropped before the transition ended. Bug: 24215358 Change-Id: I32cd633c53557305caf84e87c9a4d4f07eef2223
* | am 0e32c14a: Merge "Fixing regression in search bar animation." into ↵Winson Chung2015-10-011-5/+5
|\| | | | | | | | | | | | | ub-launcher3-burnaby-polish * commit '0e32c14ada3fae610ece912dcfd426a4a397d9ca': Fixing regression in search bar animation.
| * Fixing regression in search bar animation.Winson2015-10-011-5/+5
| | | | | | | | | | | | | | - The other case should fall through to the animation even when there is no search bar overlay. Change-Id: Id91bea78b56934cc1c3379777068adc100f11dba
* | am f768d934: Fixing regression in L3 with search bar transition.Winson2015-09-251-19/+20
|\| | | | | | | | | * commit 'f768d934682ba80da89d454543928e629a44103d': Fixing regression in L3 with search bar transition.