Commit Graph

15988 Commits

Author SHA1 Message Date
Jon Miranda 83337f9e8e Call close for AbstractFloatingViews that were removed while still open.
I'm not sure how/when this case occurs (perhaps during some transition/state
change), but manually removing the floating view matches the symptoms in the
bug.

Bug: 72996404
Change-Id: I1e7c1a338fcd16c8e07b3c49fb9c9b2097eb2708
2018-04-25 11:25:40 -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
Vadim Tryshev 9a68a9ea62 Small tweaks to positioning Clear-all button
Bug: 72222505
Test: Manual
Change-Id: I920a1d712e4f72ed66cf0c31cb77cf949339b2c6
2018-04-18 18:59:56 -07:00
TreeHugger Robot fed15f199e Merge "Implement swipe up and quick scrub onboarding (Pt. Launcher)" into ub-launcher3-edmonton 2018-04-19 00:45:09 +00:00
Tracy Zhou 5c74f7bb59 Implement swipe up and quick scrub onboarding (Pt. Launcher)
SysUI change: ag/3914771

Bug: 70180942
Test: manual test
Change-Id: I42ade28ebad6dcbbcee6dfb80791f22f36e78290
2018-04-18 17:35:33 -07:00
TreeHugger Robot c2f651decf Merge "Removing scrolling to 0" into ub-launcher3-edmonton 2018-04-19 00:10:54 +00:00
Vadim Tryshev f8f126c03e Removing scrolling to 0
This caused regressions in flip-order mode.

Will figure our later what should replace it when clear-all is enabled.

Bug: 72222505
Test: Manual
Change-Id: Ie3d65f550935a26efa8e8e31594dbe8f35ba1f71
2018-04-18 17:00:56 -07:00
Sunny Goyal 6275b0ae7e Fixing flakiness in shape detection
The shape detection logic was setting a transform on the mask path, which
overrides the original transform set by the drawable, which causes it
to give different transforms depending on how many times the method is called.

Bug: 77875383
Change-Id: I3054b8f48ba698a6c7866ed27e1129665b79c447
2018-04-18 16:57:41 -07:00
TreeHugger Robot 173765b4e6 Merge "Always draw the background color in the task views" into ub-launcher3-edmonton 2018-04-18 23:50:54 +00:00
Winson Chung 174aae5dbd Always draw the background color in the task views
- Snapshots can now be translucent which means that we always have to draw
  the background for translucent apps

Bug: 77813801
Change-Id: I70bd77aa56ee7988e2af1b602884739837478c39
2018-04-18 16:32:32 -07:00
Vadim Tryshev b1c33a5d3f Merge "Fixing Clear-all crawling down with time" into ub-launcher3-edmonton 2018-04-18 21:42:39 +00:00
Vadim Tryshev 5b87fa6af7 Fixing Clear-all crawling down with time
+ a small optimization.

Bug: 72222505
Test: Manual
Change-Id: I0fbdee0a85c123d201b0eb6951f244540ef48117
2018-04-18 14:17:32 -07:00
Sunny Goyal d47f2d26cc Fixing preference highlight when opening notification access
Bug: 77590799
Change-Id: Ife3f9d94cb9c469c6e9e000002c6277d5bf47189
2018-04-18 14:12:06 -07:00
Sunny Goyal d837a329b8 Increasing the max fling/swipe duration
Bug: 78059672
Change-Id: Iede9982b634f48f3f28732aa0d2c8413972c390b
2018-04-18 13:34:52 -07:00