Commit Graph

16300 Commits

Author SHA1 Message Date
Jorim Jaggi 6e9f6838b8 Post at front of queue for app launch and recents launch
Saves one frame of delay.

Test: Open app, inspect systrace
Fixes: 78503854
Change-Id: I6ca1a039335b833f87ada0dde50ac908e70ae8cb
2018-04-24 16:30:30 +02:00
Jon Miranda ce2c6ebdd9 Ensure workspace is still in a valid state when handling long press.
Bug: 77826453
Change-Id: Iddb62597de0073630aafc95075fb62312524c412
2018-04-23 21:14:11 -07:00
Winson Chung e6e77ca44d Hide the IME when starting quickstep.
Bug: 73285089
Change-Id: Ifad6ffe64467754ade966165ee3c274ac9445c1f
2018-04-23 17:32:43 -07:00
Winson Chung 5715d9e69b Merge "Revert "Update shared lib for fullscreen state to task snapshot."" into ub-launcher3-edmonton 2018-04-23 23:36:10 +00:00
Winson Chung 64b6195bdf Revert "Update shared lib for fullscreen state to task snapshot."
This reverts commit f86337e207.

Reason for revert: Temporary revert until there is a pi-dev build that launcher folks can flash

Change-Id: I1885d7c58d8ec5c3eaccf4abd518c375ecf65164
2018-04-23 23:33:51 +00:00
TreeHugger Robot 78933eb6f1 Merge "Fix bug where scroll position jumps when in overscroll." into ub-launcher3-edmonton 2018-04-23 23:02:45 +00:00
Jon Miranda 5918662f32 Fix bug where scroll position jumps when in overscroll.
When bouncing between top/bottom overscroll, mDistance calculation
allows it to increase without bounds. This solution resets
mDistance to 0 for the edge that is not being overscrolled.

Bug: 78364220
Change-Id: I8371b3aee37e82d40aaa6adc2473a87f2b69931c
2018-04-23 15:51:49 -07:00
Winson Chung be9679088b Merge "Update shared lib for fullscreen state to task snapshot." into ub-launcher3-edmonton 2018-04-23 22:16:18 +00:00
TreeHugger Robot 152464dba7 Merge "Setting transparency for clear-all button." into ub-launcher3-edmonton 2018-04-23 21:28:46 +00:00
Sunny Goyal 4213783716 Updating gradle configuration
Change-Id: I77c6ba057c751123bb40862a94a0027b7e0c87ef
2018-04-23 14:03:12 -07:00
Vadim Tryshev 2670fde01e Setting transparency for clear-all button.
See visual spec: https://gallery.googleplex.com/projects/MCHbtQVoQ2HCZdNNRhNUDzOW/files/MCEf7JcwkS_N8QTSAba7WiJQwMSJbxAVNpw

Bug: 72222505
Test: Manual
Change-Id: I61c7e4ccc89396827a17450db4a5e1017a5579a1
2018-04-23 13:54:55 -07:00
Tony Wickham c6b977a42e Remove preference to flip recents
Now we always flip recents, and don't have a setting.

Bug: 78231551
Change-Id: Icc991dbe4674e9238e1d7e39938009b51bde7bd5
2018-04-23 12:36:05 -07:00
Winson Chung f86337e207 Update shared lib for fullscreen state to task snapshot.
Change-Id: I9fa585f303f2613eeb5aa30cc0546230e743bbed
2018-04-23 12:25:59 -07:00
Sunny Goyal 6aef85c417 Merge "Moving some swipe up complete logic to when the handler is completed." into ub-launcher3-edmonton 2018-04-23 19:19:58 +00:00
Sunny Goyal 0bbacc705c Moving some swipe up complete logic to when the handler is completed.
Bug: 76449024
Change-Id: I136e665495ab7164c79e1dfa0ef61090ba50fc7a
2018-04-23 12:09:22 -07:00
Jorim Jaggi cd95352ada Remove prolonged animations
Never worked in P, not needed.

Test: Enter split screen
Bug: 77993227
Change-Id: I092c4141c23dd7ded4e11a0f54156b1abfa2b1c6
2018-04-23 11:54:21 -07:00
TreeHugger Robot 0ec3ce0bdf Merge "Compute window offset when quick scrub starts" into ub-launcher3-edmonton 2018-04-23 18:34:34 +00:00
Tony Wickham 78595cd7de Compute window offset when quick scrub starts
Instead of setting the window center to match the task center on every
update, compute the final offset when quick scrub starts and interpolate
alongside other factors such as window scale.

Bug: 78027888
Change-Id: I33b115764d46ecd6907ecb82b1ba12aeefc583c5
2018-04-23 11:24:24 -07:00
TreeHugger Robot 8b5c7d9315 Merge "Implement all apps discovery bounce." into ub-launcher3-edmonton 2018-04-23 17:36:22 +00:00
Tracy Zhou e5575f9fff Implement all apps discovery bounce.
Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g36a3e190fb_0_6

Demo video: go/shelf_bounce_animation

Fixes: 70180942
Test: manual test
Change-Id: I6ecceb63612dd63cea62f2e6cb19d7522f3d76e0
2018-04-23 10:26:40 -07:00
TreeHugger Robot 229fc93949 Merge "Import translations. DO NOT MERGE" into ub-launcher3-edmonton 2018-04-21 04:06:36 +00:00
Sunny Goyal de0e588a07 Cleaning up some obsolete TODOs and methods
Change-Id: I7c3f1a68fc555899e6a1270aa2ad973197a7ed85
2018-04-20 18:01:37 -07:00
Sunny Goyal 9ea8a69bc8 Merge "Handling swipe up on a third-party launcher" into ub-launcher3-edmonton 2018-04-21 00:49:11 +00:00
Sunny Goyal d60c00cc87 Merge "Using the activity size for swipe-dow animation in fallback+multiWindow mode" into ub-launcher3-edmonton 2018-04-21 00:48:49 +00:00
Sunny Goyal d3f717c765 Merge "Fixing flakiness in shape detection" into ub-launcher3-edmonton 2018-04-21 00:48:31 +00:00
TreeHugger Robot bea26c1502 Merge "Fixing preference highlight when opening notification access" into ub-launcher3-edmonton 2018-04-21 00:48:13 +00:00
TreeHugger Robot 28cad45774 Merge "Reset the force-invisible flag after the animation into launcher completes." into ub-launcher3-edmonton 2018-04-21 00:40:34 +00:00
Winson Chung b882b171e0 Only preload tasks in background when service is connected
Bug: 76162466
Test: Disable the component, ensure no task snapshots are preloaded
Change-Id: I86b66c79eb2c33796fef09d4466bc313f1c6af69
2018-04-21 00:28:27 +00:00
Sunny Goyal 6dedc222be Handling swipe up on a third-party launcher
Bug: 78125098
Change-Id: Iba4247987825bf9ce16d3494200bfea889c931e2
2018-04-20 16:33:56 -07:00
Winson Chung f23931f915 Reset the force-invisible flag after the animation into launcher completes.
- In the case where an app auto-enters into PiP, we don't run the
  predefined remote animation, which means that the force-invisible flag
  is never reset. With ag/3876550, we can rely on enter animation complete
  to be called after the transition, and we can reset the flag here as well.

Bug: 77730018
Change-Id: Ifa4cbe518047eed7ab327721ff6d17db1a2b8cd5
2018-04-20 16:12:37 -07:00
TreeHugger Robot d39b8755b5 Merge "Force finish any pending animations if the insets or orientation change" into ub-launcher3-edmonton 2018-04-20 21:10:17 +00:00
Sunny Goyal ed2d2bcbb8 Force finish any pending animations if the insets or orientation change
Some animation might be running from a previous orientation, which can cuase property changes
to get skipped.

Bug: 77848165
Bug: 77774619
Change-Id: I3e198196192746abdd72a1970ff2ef407bf4aff9
2018-04-20 20:53:16 +00:00
TreeHugger Robot 9d1e0f116f Merge "Making clear-all pressable correctly" into ub-launcher3-edmonton 2018-04-20 20:48:41 +00:00
Vadim Tryshev d9e53c13b1 Making clear-all pressable correctly
Bug: 72222505
Test: Manual
Change-Id: I1ca35482a2090c329be6c906f5047612e6948ad2
2018-04-20 13:38:41 -07:00
TreeHugger Robot 48ac87350f Merge "Not sharing same task view between shortcuts" into ub-launcher3-edmonton 2018-04-20 20:05:18 +00:00
TreeHugger Robot 02632bcc1a Merge "Not ignoring insets for Clear-all button" into ub-launcher3-edmonton 2018-04-20 19:45:24 +00:00
TreeHugger Robot bb4102fde1 Merge "Kepping the rotation setting UI always enabled and accessible" into ub-launcher3-edmonton 2018-04-20 19:22:12 +00:00
Vadim Tryshev 4d577fc1c5 Not sharing same task view between shortcuts
SplitScreen task shortcut was written with an expectation that only one
instance would be created at a time.

No that it's used by Accessibility, SplitScreen may be asked to provide
multiple shortcuts at a time for multiple tasks, and they share same
mTaskView.

Fixing this.

Bug: 78094307
Test: Manual
Change-Id: Ib440ca862b0677ec4a012ec9f2a225183b2c91f4
2018-04-20 12:20:20 -07:00
Sunny Goyal c919a4fa94 Kepping the rotation setting UI always enabled and accessible
Bug: 77654352
Change-Id: Iade9ef33bc70fdbdac9ab39d6fa77113fb21549a
2018-04-20 12:00:43 -07:00
Bill Yi dcbd321095 Import translations. DO NOT MERGE
Change-Id: Iaf7e186dfb94e7ff47c048c9b8d4e0e1fb829b26
Auto-generated-cl: translation import
2018-04-20 12:00:33 -07:00
Tony Wickham 6c5e169de6 Prevent unecessary invalidates
updateEmptyMessage() calls invalidate() whenever size has changed. We
were only updating mLastMeasuredSize when showing the empty message,
however, so we were invalidating whenever updateEmptyMessage was called.

Change-Id: Ic9046738e4f53d53aded6347a273522c53394991
2018-04-20 11:32:03 -07:00
TreeHugger Robot f589eebbec Merge "Bringing back auto-rotate settings" into ub-launcher3-edmonton 2018-04-20 16:45:18 +00:00
Sunny Goyal f3d7328518 Using the activity size for swipe-dow animation in fallback+multiWindow mode
Bug: 77281732
Change-Id: I2d652b801bcecd339fed00a43677b20d782997c6
2018-04-20 09:30:32 -07:00
Vadim Tryshev 4473658c2f Not ignoring insets for Clear-all button
When in portrait mode with nav bar on the right , we need the right
inset to be applied to the layout.

Bug: 72222505
Test: Manual
Change-Id: I06ac864097fb3cfb833de3e40921be4e19eb5f54
2018-04-19 18:43:04 -07:00
TreeHugger Robot e13659bd5b Merge "Updating the task swipe-down UI" into ub-launcher3-edmonton 2018-04-19 23:38:13 +00:00
Sunny Goyal 7d2e40912e Updating the task swipe-down UI
Bug: 77281732
Change-Id: I1bbc1bbeee74983b3fde5e8218e08689f32ac717
2018-04-19 16:30:43 -07:00
Vadim Tryshev e8cf0ae61f Centering empty icon.
This is more correct way that what was rolled back here: ag/3922402.

Bug: 72222505
Test: Manual
Change-Id: I2cc4549db9b6a5965523d13ffde768b3e28bc7a6
2018-04-19 13:26:48 -07:00
TreeHugger Robot 69632a46ab Merge "Linking swipe animate to stateTransition to that it gets properly reset afterwards" into ub-launcher3-edmonton 2018-04-19 18:02:12 +00:00
TreeHugger Robot e590e0b477 Merge "Small tweaks to positioning Clear-all button" into ub-launcher3-edmonton 2018-04-19 17:22:22 +00:00
Sunny Goyal 40253329c5 Bringing back auto-rotate settings
Bug: 77654352
Change-Id: I0910fc8afe2fb7e125d57912abc35bbbd5df9d74
2018-04-19 09:27:56 -07:00