Commit Graph

10334 Commits

Author SHA1 Message Date
TreeHugger Robot c7189a6f2d Merge "Enabling Least square velocity tracker algorithm" into ub-launcher3-master 2020-03-26 17:56:24 +00:00
Tracy Zhou c0000450b5 Support grid preview with v2 migration algorithm
The focus of ag/10346770 is around the actual algorithm, while in the meantime our preview logic has changed during the code review of ag/10100264.

GridSizeMigrationTaskV2 addresses both cases, the difference being preview passes in constructed IDP while actual migration uses IDP from the current Context.

When doing actual migration, we call METHOD_UPDATE_CURRENT_OPEN_HELPER to update the current db helper and copy the favorites table from the previous db into the current db in favorites_tmp table. Then we do migration from there.

When calculating preview, I added METHOD_PREP_FOR_PREVIEW in this change to copy the favorites table from the intended grid setting to the current grid setting in favorites_preview table. Then we calculate migration from the current favorites table to favorites_preview table and save into favorites_preview table.

Bug: 144052802
Fixes: 144052839

Test: Manual

Change-Id: I64a8b61a4e0bf8399c0ae1af4ef9d2bde0f1ee2f
2020-03-25 21:58:19 -07:00
TreeHugger Robot 239e05eccb Merge "Highlight personal tab on work profile reinstallation" into ub-launcher3-master 2020-03-25 22:14:23 +00:00
Sunny Goyal 3e94faa5de Merge "Removing animation when stripping empty pages, as the animation is run by LayoutAnimation already" into ub-launcher3-master 2020-03-25 22:06:40 +00:00
TreeHugger Robot 7f571f6214 Merge "Go home when new tab is installed" into ub-launcher3-master 2020-03-25 19:15:38 +00:00
Samuel Fufa 41d909ff67 Go home when new tab is installed
Bug: 150943778
Test: Manual
Change-Id: Iccd7f62c4cad856849fc1afb2faac9b9fa2f9f97
2020-03-25 11:29:56 -07:00
Samuel Fufa 6fb959d8cc Highlight personal tab on work profile reinstallation
Bug: 145595763
Test: Manual
Change-Id: I4da5e03c3aa66b324bc375d328e7b81278d58aca
2020-03-25 11:26:25 -07:00
Jon Miranda 7899902b12 Ensure current animation is cancelled before building new folder animation.
Fixes bug where folder clip padding gets stuck as false.

Bug: 146884730
Change-Id: I3a24e561d15fbc46837bb21cd8f97283e69f9ce1
(cherry picked from commit 9794d4d52a)
2020-03-25 15:27:52 +00:00
Sunny Goyal 6ad8a7e6f7 Merge "Fixing drag getting stuck due to mismatch touch events" into ub-launcher3-master 2020-03-25 04:33:59 +00:00
TreeHugger Robot bc89d17690 Merge "Debug tracing to repro a flake" into ub-launcher3-master 2020-03-25 01:49:04 +00:00
TreeHugger Robot ee24e84a3d Merge "Decoupling some dragController methods" into ub-launcher3-master 2020-03-25 01:07:25 +00:00
Sunny Goyal a306e59c69 Fixing drag getting stuck due to mismatch touch events
Bug: 150825081
Change-Id: Ib0613ff145fe308800eae85f2148b22ee01db91d
2020-03-24 18:05:45 -07:00
vadimt ac752e39f5 Debug tracing to repro a flake
Bug: 152354290
Change-Id: I06c9ad131ab125226dfdd548121d0aa3f26c7bc7
2020-03-24 17:58:03 -07:00
Sunny Goyal deb91c46eb Decoupling some dragController methods
Change-Id: I7c4ab5f1504c49eaa0566afe643d7672faa80205
2020-03-24 17:27:58 -07:00
Sunny Goyal 8b4c975546 Merge "Adding some wallpaper depth to drag and drop" into ub-launcher3-master 2020-03-25 00:13:09 +00:00
TreeHugger Robot b2f76460b6 Merge "Removing base no-op implementation of depth controller" into ub-launcher3-master 2020-03-24 23:43:49 +00:00
Sunny Goyal 284a6cfdd7 Removing base no-op implementation of depth controller
Change-Id: Ibf46c0a147d2772033ad469b803e606376978cd7
2020-03-24 16:11:06 -07:00
Sunny Goyal 95613d93a2 Adding some wallpaper depth to drag and drop
Change-Id: Ib9acee6dcf8b2883cb66b65159d049bd8cbc2e8b
2020-03-24 12:13:17 -07:00
TreeHugger Robot 8ca3d852e5 Merge "Default fixed_rotation to off" into ub-launcher3-master 2020-03-24 18:39:29 +00:00
Sunny Goyal 3abaae6c3c Fixing userControlled flag not properly set when building state animation
Bug: 152278197
Change-Id: Icc7d7444f7744c0614b03241d65156d6d493df84
2020-03-24 01:27:53 -07:00
Jonathan Miranda 5d87e9a1ae Merge "Polish badge animation on app open/close." into ub-launcher3-master 2020-03-24 04:11:38 +00:00
TreeHugger Robot 839a0f32e5 Merge "Cleanup LoggerUtils" into ub-launcher3-master 2020-03-23 23:21:34 +00:00
thiruram ed538e53b0 [DO NOT MERGE] Adds basic smart-folder logging.
This would allow collecting trimmed down version of smart-folder logs from QPR devices.

Change-Id: Ida332bd969774cabcfd72def5bed0e6409d6c8e1
(cherry picked from commit d684eddd9f)
2020-03-23 23:11:41 +00:00
Sunny Goyal 062c84663a Enabling Least square velocity tracker algorithm
Bug: 139750033
Change-Id: I6b4e755f983ae23343a242f69b51f3fccd7a9fc5
2020-03-23 14:38:20 -07:00
Sunny Goyal 7fb01cc6b3 Restring the item rank to valid range since the folder contents
change during drag operation

Bug: 152193591
Change-Id: I71a3c44e84fe8c3bf787ad28c2f2fad48f0ad70a
2020-03-23 21:19:07 +00:00
Hyunyoung Song 4d9ad3a196 Cleanup LoggerUtils
Change-Id: Ibeccb61b25236ee905f61bdb5ea2255f778d4b05
2020-03-23 13:57:10 -07:00
Jon Miranda 4848604882 Polish badge animation on app open/close.
Create new ClipIconView so that the adaptive icon foreground/background can
get clipped properly, and the badge gets drawn separately on top of it.

Bug: 142105172

Change-Id: Ie5d65c20f845d9219fd01daa383f273dde0e096c
2020-03-23 12:24:04 -07:00
TreeHugger Robot 7a84dd66f6 Merge "Parse share-targets defined by non-main activities" into ub-launcher3-master 2020-03-23 18:27:27 +00:00
Pinyao Ting d25023b05e Parse share-targets defined by non-main activities
Some system apps do not have any launcher icons but want to publish
sharing shortcuts. As a fix, all activities are parsed for their XML
resource, which implies some of these shortcut may not hold an
activity. This CL removes that assumption from launcher side.

Bug: 136353429
Test: Manual test
Change-Id: I2994da17fe078b2fab61a614c1326fddd5fd8571
2020-03-23 17:49:34 +00:00
Sunny Goyal 6e379fc784 Removing animation when stripping empty pages, as the animation is
run by LayoutAnimation already

Bug: 151978739
Change-Id: I75b9055c3e862a6813164cce6c1ba7b2fe1f870a
2020-03-23 01:50:55 -07:00
TreeHugger Robot f3e40c321d Merge "Animate Work paused overlay" into ub-launcher3-master 2020-03-21 07:43:46 +00:00
TreeHugger Robot 6ae56860de Merge "Don't draw bottom scrim in fully gestural mode" into ub-launcher3-master 2020-03-21 03:43:52 +00:00
Samuel Fufa 1b373657a4 Animate Work paused overlay
Please see bug for video preview

Bug: 151408501
Test: Manual
Change-Id: Ic96bdc438b7c897c89261764dad16124006d7138
2020-03-20 20:19:03 -07:00
Tony Wickham 81feb2c547 Don't draw bottom scrim in fully gestural mode
The scrim exists primarily to protect nav bar buttons which
don't exist in this mode.

Change-Id: Ic6de7d54f27f135eecb116ac09714c91c05b88da
2020-03-20 18:37:26 -07:00
Adam Cohen f946e0a5ee Merge "Refactor / Cleanup / Simplify a bunch of dnd related rendering / animation" into ub-launcher3-master 2020-03-21 01:27:08 +00:00
Adam Cohen 650869973a Refactor / Cleanup / Simplify a bunch of dnd related rendering / animation
Addresses:
=> Fix folder icon drop location mapping (was very far off)
=> Fix BubbleTextView drop animation shifted by a few pixels
=> Get rid multiple unnecessary calls to setDragMode(none), was breaking
   some of the reorder flow; still some issues to address here.
=> Fix folder icon parallax (didn't work when the folder had a dot)

Test: manual

Change-Id: I5959cf341996f75d30212353ec096ed25bf40ea5
2020-03-21 01:26:09 +00:00
Tony Wickham 3b5f2224c6 [DO NOT MERGE] Support blacklisting live wallpapers from showing sysui scrims
Add wallpaper changed broadcast receiver to BaseDragLayer, which
checks if the new wallpaper is blacklisted and relays that to
remove the scrims.

Bug: 150144115
Change-Id: I55b7b98fdd419cd76532492461a872367efed67b
(cherry picked from commit d6f917f182)
2020-03-20 21:56:18 +00:00
TreeHugger Robot 7d3a113d05 Merge "Work profile accessibility fixes" into ub-launcher3-master 2020-03-20 20:46:25 +00:00
Andy Wickham b55d5b279b Merge "Adds back gesture recognition to Sandbox." into ub-launcher3-master 2020-03-20 20:23:16 +00:00
Samuel Fufa 45c3b10448 Work profile accessibility fixes
- Remove TextView and use work switches text
- Allow talkback to read recyclerview overlay

Bug: 151884799
Bug: 151803591
Bug: 151274763
Bug: 151585835
Test: Manual
Change-Id: Ieee0d37d0244eb12ecb923d710cbbd6a86281062
2020-03-20 11:52:03 -07:00
TreeHugger Robot 20035f1803 Merge "Migrate hotseat items into a folder" into ub-launcher3-master 2020-03-20 03:52:26 +00:00
Samuel Fufa 82bbdaceae Migrate hotseat items into a folder
If feature flag HOTSEAT_MIGRATE_TO_FOLDER is enabled, this moves hotseat
items into a folder in the workspace. If not, it moves the whole hotseat
to the first workspace page that can host the hotseat.

Bug: 151099421
Test: Manual
Change-Id: I49f6a22a0ada2c4cf237ca91a323a46346a11a59
2020-03-19 20:10:14 -07:00
Tony Wickham 5de624c286 Merge "Support blacklisting live wallpapers from showing sysui scrims" into ub-launcher3-master 2020-03-20 01:31:35 +00:00
Andy Wickham 3e34dd3791 Adds back gesture recognition to Sandbox.
This is used to step through the "happy path" of the existing
back tutorial steps (right edge and left edge). Unlike in the
Pixel Tips app, the tutorial only continues if you perform the
gesture from the correct edge of the screen.

This also lays the groundwork to provide helpful tips if the
expected gesture is performed incorrectly, although currently
such gestures are just ignored.

Demo: https://drive.google.com/open?id=12S42mZQITGzIWnj7mP1L__PCOgAQcjgp

Bug: 148542211
Change-Id: Ib2e0b2ff7c021db48c96d58e1370fa2e93330912
2020-03-20 01:01:49 +00:00
Tony Wickham d6f917f182 Support blacklisting live wallpapers from showing sysui scrims
Add wallpaper changed broadcast receiver to BaseDragLayer, which
checks if the new wallpaper is blacklisted and relays that to
remove the scrims.

Bug: 150144115
Change-Id: I55b7b98fdd419cd76532492461a872367efed67b
2020-03-19 16:32:33 -07:00
Jon Miranda 42e7c503e1 Polish app open scrim animation.
We used to hide the scrim animation immediately, now we fade it out along with
the rest of the draglayer.

Also uses staggered workspace animation when resuming launcher from other
means ie. back gesture -> home

Bug: 145242991
Change-Id: Ib2161746f79ae5eaceac02d1416aa9bd7ecfeac4
2020-03-19 11:59:59 -07:00
TreeHugger Robot fe04158ce4 Merge "Revert "[DO NOT MERGE] Turn off FOLDER_NAME_SUGGEST feature flag"" into qt-qpr1-dev 2020-03-19 06:58:16 +00:00
Samuel Fufa ef1d1b93e4 Merge "Final strings for work profile and hybrid hotseat" into ub-launcher3-master 2020-03-19 06:05:13 +00:00
Tracy Zhou 30fb3f1983 Merge "Enable USE_SURFACE_VIEW_FOR_GRID_PREVIEW flag" into ub-launcher3-master 2020-03-19 05:48:03 +00:00
Samuel Fufa 351eaedc91 Final strings for work profile and hybrid hotseat
Bug: 151831282
Bug: 142753423
Change-Id: I11dd21c3854b8b33fc44b2e49ca0e62c24da3310
2020-03-18 19:20:21 -07:00