summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/launcher3
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug where rounded corners were being set despite being disabled.Jon Miranda2019-07-251-1/+4
| | | | | | Bug: 138117089 Change-Id: Icb852e2e07d80c45ad3406ef432b89720887fccf (cherry picked from commit e734efba8dc58ea145dc0a620f18cbe2032f70ce)
* Merge "Revert "Enable FLAG_SLIPPERY window flag when swipe down on ↵TreeHugger Robot2019-06-281-51/+17
|\ | | | | | | workspace"" into ub-launcher3-qt-dev
| * Revert "Enable FLAG_SLIPPERY window flag when swipe down on workspace"Winson Chung2019-06-281-51/+17
| | | | | | | | | | | | | | | | This reverts commit 35062f8ed32ea4a868be077fdae37409a700e759. Reason for revert: Moving to R1 Change-Id: Ifd19d78015a66c9fbe9a67845232d13e011943d3
* | Merge "Enable FLAG_SLIPPERY window flag when swipe down on workspace" into ↵Winson Chung2019-06-261-17/+51
|\| | | | | | | ub-launcher3-qt-dev
| * Enable FLAG_SLIPPERY window flag when swipe down on workspaceHyunyoung Song2019-06-261-17/+51
| | | | | | | | | | | | | | Bug: 131356741 Test: manual Change-Id: Ibe0e3a03e7406d5d882a1c63265d6e4e0253983e
* | Finish recents animation when starting a new activityWinson Chung2019-06-261-1/+1
|/ | | | | | | | | - Defer starting the activity when an activity is paused, and finish the current animation to trigger launcher to be resumed Bug: 132811175 Test: Swipe up and launch a new app Change-Id: I78b76800052512eb93f69ccf0523f4d752a82ece
* Some improvements to home to overview transition for 0 button modeTony Wickham2019-06-191-1/+8
| | | | | | | | | | | - Peek in overview further, and with more overshoot - Fade out and scale down workspace faster while swiping up - Scale and translate workspace slower when letting go to enter overview (so it doesn't zoom out at warp speed) - Fade in all apps shelf sooner Bug: 132455160 Change-Id: Ieafad0ccf9bb587889bc35d536627661db10e358
* Preloads the icon drawable for app open to reduce latency b/w swapping views.Jon Miranda2019-06-131-0/+7
| | | | | | | For app close, we already load the icon as soon as we can. Bug: 135130011 Change-Id: Ia2c45737cf24d1ab5911b222ae097d7a1f9d6a31
* Adding support for custom callback when starting ProxyActivitySunny Goyal2019-06-121-6/+12
| | | | | Bug: 133443741 Change-Id: Ifd6a289b7f49d52efe0767b600cecc2b460a87fc
* Disable seamless rotation for 3 and 2 button modeSunny Goyal2019-06-061-5/+8
| | | | | Bug: 134095068 Change-Id: I8603e49a85b5524a02c9085485a180b022e3f91e
* Reduce alpha delay 25ms to reduce flashy feeling of appearing large.Jon Miranda2019-06-051-1/+1
| | | | | Bug: 123900446 Change-Id: Ia8ff74eb6b65affbf5c6c1599f4d168b459f324e
* Tuning app open/close animation.Jon Miranda2019-05-301-2/+5
| | | | | | | | * Mostly value changes. * Added a way to round the corners during swipe up to home animation. Bug: 123900446 Change-Id: Id61d241d919ba51ced0633585e36b7d93efe30b0
* Animate workspace upwards when opening an app.Jon Miranda2019-05-291-1/+1
| | | | | Bug: 123900446 Change-Id: I3d08985f8362038f50728e91e2fedf1c97e326ff
* Merge "Support individual lock task features" into ub-launcher3-qt-devWinson Chung2019-05-291-0/+6
|\
| * Support individual lock task featuresWinson Chung2019-05-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - If screen pinning is enabled, disable gestures and wrap with input consumer to break out of screen pinning (existing logic) - If Home & Overview are both disabled, disable gestures completely - If only Home is disabled, then always launch the user into fallback recents (to simplify logic around breaking out of overview into Home) - If only Overview is disabled, then prevent swiping from going into overview or from triggering overview from home - Switch to using screen pinning flag check instead of binder call Bug: 133113732 Bug: 131698989 Change-Id: Ie6f447520d4cc3fa1eaaf8427ee014851688bf37
* | Adding a utility class to cache views at an activity levelSunny Goyal2019-05-221-6/+5
|/ | | | | Bug: 122345781 Change-Id: I9a939e0b19c06c1089c1ceb515f8b97fb5dbb49e
* Using a proxy activity for startActivityForResultSunny Goyal2019-05-153-0/+226
| | | | | | | This ensures that the home task is never blocked by a different task Bug: 74500048 Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
* Fix landscape app open/close animations.Jon Miranda2019-05-151-9/+30
| | | | | | Bug: 123900446 Bug: 124510042 Change-Id: I3db80d6f8064ce26f97cdede63c0d25499416e98
* Implement 3 shades of folder icon/container fill colorHyunyoung Song2019-05-141-0/+8
| | | | | | Bug: 130451254 Change-Id: I36d885a2b0247f1bb84cb98073459853ae723331
* Use device profile width instead of drag layer width for overview translationTony2019-05-131-1/+1
| | | | | | | | | | | This fixes the issue where overview doesn't come in from offscreen the first time you enter overview from home. Test: - Force stop launcher, quick switch from home - Force stop launcher, swipe up and hold Change-Id: Ia4dbd36267008bc199cff088833979606238d3eb
* Initial app open/close polish using tuned values.Jon Miranda2019-05-101-9/+14
| | | | | | | | * Rect and radius now match the app window size. Bug: 124510042 Bug: 122843905 Change-Id: Ibc85bfe1d75d01cefe00b6bf32557e04a0ee4716
* Ensure Recents Go layout finishes before remote anim beginsKevin2019-05-071-65/+79
| | | | | | | | | | | | | | | | | | | | We would like to assume a correct up-to-date layout for Go recents before the remote animation begins to ensure correctness of the app to overview transition and allow for animating all the newly laid out task views in sync. We do this by checking if recents is the remote target we are animating to and if so, checking if the view is ready. If it is not, then we delay the remote animation until the layout is finished and everything is attached. Bug: 132112131 Fix: 132108983 Test: Run Recents Go, have no tasks in recents, open app, press overview to go to recents Test: Test on AOSP and NexusLauncher that animations to Launcher work as before (both to recents and to home) Change-Id: Id74d90cffc9fe5db1dbb5fe63b8819c7436fef21
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-3/+3
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* Fix app open animation in landscape.Jon Miranda2019-04-301-4/+3
| | | | | Bug: 130828765 Change-Id: Ic447d05a8fe2097a6afd0bfec73039a62bbf5a4b
* Releasing SurfaceControl when they are no longer neededSunny Goyal2019-04-291-2/+2
| | | | | Bug: 123874711 Change-Id: I9c06723a3e5d4a23b8a6c60352806bb12daba598
* Add important dump loggingHyunyoung Song2019-04-251-0/+12
| | | | | | | Bug: 130851537 Bug: 119992316 Change-Id: I3de7c1d910d1aecd80b47a85284565c79fe0e2cc
* Move system gesture exclusion rect to LauncherRootViewTony Wickham2019-04-231-1/+1
| | | | | | | | We translate DragLayer when going to -1, so the exclusion rect was off screen when you went back from there. Bug: 129297464 Change-Id: Ie079b2dadaca07886408ee9c1d130d7ac351a61d
* Add some egregious back exclusion rectsTony Wickham2019-04-091-1/+3
| | | | | | | | - Don't allow back gesture at all whenever we hid back button before - Exclude RecyclerViewFastScroller thumb rect Bug: 129297464 Change-Id: I40a33697592b02619218c18d1b3def7c3c203f56
* Allow swipe up to all apps anywhere on workspaceTony Wickham2019-04-091-2/+3
| | | | | Bug: 129033091 Change-Id: Ib0066c59f86b3137aedad8d18393b5a622e0cd80
* Removing unnecessary corner size caching in RecentsModelSunny Goyal2019-04-051-11/+9
| | | | Change-Id: I1be87dc15a3b9ec8225dccce701bff19785658d6
* Removing SWIPE_HOME flag and using sysUI mode insteadSunny Goyal2019-04-031-0/+12
| | | | | Bug: 129873705 Change-Id: Ieaa7d7928427daed98538c616bdf58b28d295829
* Refactor app open animation so that FloatingIconView tracks window.Jon Miranda2019-04-011-146/+95
| | | | | | | | | | | | | | | | | | Before, the window used to track the FloatingIconView. With this refactor, both app open and app close use the same update method. With the refactor, we can now use adaptive icons to morph the icon into the size of the window. Movement/interpolators are still the same as the original except for the alpha and the clip animation. To ensure a perfect tradeoff, we wait for the icon to match the size and shape of the window before crossfading. Currently it is set up so that the tradeoff happens when the animation is 15% done, but this can be tuned later. Bug: 122843905 Change-Id: I7d3edbefffb15fe26958a62ab33cf23dc1203908
* Making navigation mode listener a singleton so that the change is dispatchedSunny Goyal2019-03-291-4/+10
| | | | | | everywhere synchronously. Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
* Add QuickSwitchTouchController on homeTony2019-03-281-5/+8
| | | | | | | | | - Added QuickSwitchState, which we animate to when swiping right on the nav bar from NORMAL state - Task launches when the state transition to QuickSwitchState ends Bug: 126596417 Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
* Fix SwipeDetector positive vs negative for HORIZONTAL directionTony2019-03-271-1/+1
| | | | | | | | | Previously left was considered positive and right considered negative. Now left and down are negative, and right and up are positive. For RTL, left is positive and right is negative. Change-Id: Ia31e8c687c8c2716fc632b2fe88aa8955b934bce
* Move some classes to packagesTony2019-03-274-4/+6
| | | | | | Added states/ and touchcontrollers/ packages Change-Id: I8d59c47770c24c9edd1b7ce879e6a80ca8b88c71
* Peek overview on motion pause, then animate fully on touch upTony2019-03-271-1/+3
| | | | | | | | | | | | | | Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT. When SWIPE_HOME is enabled: - Overview lives to the left of Workspace, which is encoded in LauncherState.NORMAL.getOverviewScaleAndTranslation(). - Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT and OVERVIEW_PEEK state when swiping and holding from home screen. Bug: 111926330 Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
* Add translationX to overview stateTony2019-03-272-27/+29
| | | | | | | | States return ScaleAndTranslation instead of float[]. Also separate overview translate interpolator from overview scale interpolator. Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
* Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilderTony2019-03-272-0/+11
| | | | | | | | This allows us to specify when a second animation will handle the overview animation, so it doesn't conflict with existing state transitions. Bug: 125362112 Change-Id: I497c02924862bfba558c107bee3c88a9f40ec0f1
* Replace translationYFactor with just translationYTony2019-03-202-17/+11
| | | | | | | | Now that we don't have quick scrub, the only state that has a non-zero translation is all apps, which just uses that to have a slight parallax. This is much simpler to define in terms of pixels like other states do. Change-Id: I108c8505d85591399256b3475f7566ff51e2c5ad
* Don't close popup container if touch came from nav barTony2019-03-151-1/+1
| | | | | | | Moved EDGE_NAV_BAR from quickstep package to launcher3 Bug: 127917144 Change-Id: Ic619ea49896ca8e49a9a539b7dc7d682291241b7
* Set window corner radius to 0 for app tranition anims in multi-window mode.Jon Miranda2019-03-111-3/+6
| | | | | | | Otherwise we see a jump from corner radius to 0 corner radius when the animation completes. Change-Id: I46a65342d4ea531dc16c866aee305478067959d3
* Transform closing window to icon on workspace using adaptive icons.Jon Miranda2019-03-011-4/+3
| | | | | | | | | | | | | | | | | With adaptive icons, we can have FloatingIconView match the shape and size of the closing window, regardless of the icon shape. FloatingIconView starts off as a rounded rect (same corners as task view) and then morphs into the icon shape using FolderShape#createRevealAnimator in reverse. Decided to add FeatureFlag.ADAPTIVE_ICON_WINDOW_ANIM since there are still some issues with folders, badges, and a visible jump when swapping the FloatingIconView with the original icon. Bug: 123900446 Change-Id: I94969eea6d5f4b932a84a11eb403611276042b46
* Revert "Add remote animation for unlocking device."Jon Miranda2019-02-281-5/+0
| | | | | | | | | This reverts commit 55a32272be2e2369ec25bdca3ef0e5724430b9c5. Reverting until we can revisit this animation. Bug: 123906429 Change-Id: Ic2d6e5a8198900fb15abd60dd140091681f828dd
* Remove several files from Recents Go srcKevin2019-02-251-309/+0
| | | | | | | | | | As Go will not be using RecentsView, there are several files that are unneeded in the recents Go source. This moves these files to recents_ui_overrides where they will be used for non-Go builds. Bug: 114136250 Test: Build NexusLauncher, aospWithQuickstep, l3GoWithQuickstep Change-Id: I9d0154a75f4f2c71b865d414448e262b3019b2b9
* Some live tile and state fixesSunny Goyal2019-02-181-7/+1
| | | | | | | | | | > Removing LayoutListener which was causing relayouts in the middle of the transitions > Fixing some logging in MultiStateCallback > Using an overlay to draw the hole for the live tile Bug: 124451190 Change-Id: I91351f76ec7cc2793a835f40002bfd912939d40d
* App to home animation zooms into the app icon.Jon Miranda2019-02-141-53/+19
| | | | | | | | | | | | | | | | - Created FloatingIconView which is now used by both the app close and app open animation. - getItemLocation in DeviceProfile is used to get an item's final location since getLocationOnScreen may return a View's location mid-animation. - Added getFirstMatchForAppClose which is optimized to return for best visual animation. - Also fixes app open RTL bug. - Next CL will use AdaptiveIcons and FolderShape reveal animator to match the app icon to the app window. Bug: 123900446 Bug: 123541334 Change-Id: Ief75f63fc5141c1ee59d4773946d08794846cb31
* Deleting Quickscrub related logicSunny Goyal2019-02-142-21/+2
| | | | | Bug: 124255113 Change-Id: Ic5f2338f1e3ae0a0cfb08f822dee0e01ae54a7b0
* Fixed corner radius during app launchLucas Dupin2019-02-091-6/+2
| | | | | | Change-Id: I9490bc359b93f9ca8b7c1dad2d93e90d0fba5ac8 Fixes: 122554807 Test: visual
* Stub out BackgroundApp/FastOverview states for Go.Kevin2019-02-012-169/+0
| | | | | | | | | | Go's recents will not have swipe up to overview so there is no need to have BackgroundAppState. We also do not support quickstep so we don't need a distinct FastOverviewState. So we stub them out here. Bug: 114136250 Test: Manual test Launcher3QuickstepGo + NexusLauncher Change-Id: I9223cd35fc3c64688cda16dcaa1d5f40460c9323