Commit Graph

75446 Commits

Author SHA1 Message Date
Sebastian Franco ea78903380 Adding screenrecord to get more information about the test
Test: testWorkspace
Flag: NA
Bug: 331261431
Change-Id: Ifeaa0fe287c2cbf0b9c1c468c494752fe7f35d37
2024-04-22 19:38:23 -07:00
Vinit Nayak c0a1fbe872 Merge "Revert^2 "Launch split tasks at beginning of animation instead of the end"" into main 2024-04-19 17:00:37 +00:00
Fengjiang Li 7d80f801b1 Merge "[Predictive Back] AbstractSlideInView#mViewToAnimateInSwipeToDismiss can be private" into main 2024-04-19 16:22:30 +00:00
Treehugger Robot d8a6db2c90 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: a692409e5b -s ours
am skip reason: contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27022990

Change-Id: I40b4ccea42b0653f2b86044dec63abc7c40b665e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 16:16:32 +00:00
Bill Yi 99c7b2d991 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ea696564d5 -s ours
am skip reason: contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27022990

Change-Id: Ie6a92980cb5248e207ad2b3f28bdff16955ec06e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 16:16:27 +00:00
Bill Yi 5f71ca9d0f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 46a33d45c0 -s ours
am skip reason: contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27021532

Change-Id: I85ccb22d67a3a94ca79166cc7f9d39b4165324b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 16:16:20 +00:00
Treehugger Robot a692409e5b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-19 16:00:28 +00:00
Charlie Anderson 299e42cf8d Merge "Fix NPE for where intent.package is null but targetpkg is not." into main 2024-04-19 15:10:20 +00:00
Brandon Dayauon 715059a1e3 Merge "Make settings cog animate back to original button" into main 2024-04-19 10:07:36 +00:00
Luca Zuccarini 62535f1fab Merge "Settle without jumping at the end of the home transition." into main 2024-04-19 09:50:38 +00:00
Bill Yi ea696564d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I69611a4fef3c988a5639cb21110f608d38d07897
2024-04-18 23:15:13 -07:00
Bill Yi 46a33d45c0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6f2f4284cf13655c06901f962e97de9c74a88bfe
2024-04-18 23:13:46 -07:00
Brandon Dayauon 24db282ed4 Merge changes Ied2efcf6,I07579635 into main
* changes:
  Polish workFAB with updated spec.
  Fix workFAB alignment.
2024-04-19 00:59:19 +00:00
Vinit Nayak a6bf5a0014 Revert^2 "Launch split tasks at beginning of animation instead of the end"
This reverts commit fb092a9a6c.

Reason for revert: b/333937249

Change-Id: I77bd6c0d2fbe2f2dad074e8e0e741b50d4d7c204
2024-04-19 00:18:16 +00:00
Brandon Dayauon 7760a4c262 Merge "Private space header to support RTL" into main 2024-04-18 23:19:35 +00:00
Shamali Patwa 1b8fcf4371 Merge "Revert "When getting a widget provider by name, check all categories"" into main 2024-04-18 22:14:29 +00:00
Charlie Anderson ce255ff6fd Fix NPE for where intent.package is null but targetpkg is not.
- Also update WorkspaceItemProcessorTest with a new test and to use real intent instead of mock

Bug: 330250727
Test: unit tests
Flag: N/A
Change-Id: I77e17901f4754c301ca20b3c6f93bbe29bead59b
2024-04-18 17:48:27 -04:00
Brandon Dayauon 20a6ffd04b Merge "Fix install apps button" into main 2024-04-18 21:42:59 +00:00
Brandon Dayauon baf5f6ec3d Polish workFAB with updated spec.
Updating the workFAB to the new spec: https://docs.google.com/presentation/d/1tTODboxGqJ3ypEyYnr0-bUpSXcvX1cl6Sj8y0Nut5hU/edit?resourcekey=0-9GT8EJG43kTT4aKPWVWRig#slide=id.g2c8f3ae8e02_0_0
Have the background endPadding to be 4 and icon have an endMargin of 12 and the text endMargin of 16.
So that when the text is disappeared, the space between the icon and the right bound is 16dp to spec.

bug:332761814
Test manually:
after LTR expanded:https://drive.google.com/file/d/1NZQW0CF9VFZBoM3673LFiUknqW2nf4r8/view?usp=sharing
after LTR collapsed: https://drive.google.com/file/d/1NRpdTuYQntSs5-yeRL1fJIJy2ETDOYLM/view?usp=sharing
after RTL collapsed: https://drive.google.com/file/d/1NE51MIsS5Fk0DwAuzCehEQzTa42OGj_o/view?usp=sharing
after RTL expanded: https://drive.google.com/file/d/1NPgiPfzw3DOa_xbB_TtlwK-G1Y5WCi53/view?usp=sharing
Flag:None

Change-Id: Ied2efcf6b1bd19c191d80e47bae4f8f6e3794803
2024-04-18 14:40:42 -07:00
Brandon Dayauon 4e68d3992d Fix workFAB alignment.
The calculation to find how much the FAB should shift is outdated as using the
method from deviceProfile#getAllAppsIconStartMargin() gives a better value.

bug:332761814
Test manually:
after LTR expanded:https://drive.google.com/file/d/1NZQW0CF9VFZBoM3673LFiUknqW2nf4r8/view?usp=sharing
after LTR collapsed: https://drive.google.com/file/d/1NRpdTuYQntSs5-yeRL1fJIJy2ETDOYLM/view?usp=sharing
after RTL collapsed: https://drive.google.com/file/d/1NE51MIsS5Fk0DwAuzCehEQzTa42OGj_o/view?usp=sharing
after RTL expanded: https://drive.google.com/file/d/1NPgiPfzw3DOa_xbB_TtlwK-G1Y5WCi53/view?usp=sharing
Flag:None

Change-Id: I07579635d6176553d27497cb73b81799648fb014
2024-04-18 14:40:41 -07:00
Brandon Dayauon 120838b04d Make settings cog animate back to original button
Provide the appropriate itemInfo so that launcherBackAnimation would play correctly.

bug:324569690
Test manual video: https://drive.google.com/file/d/1GfjL4PhdGOxs2KfDpieTNiFiKQ61aCgh/view?usp=sharing
Flag: ACONFIG com.android.launcher3.Flags.enable_private_space trunkfood

Change-Id: I1a9458643e932b279bf4ba4ea33e3dc0a2c121c2
2024-04-18 14:32:33 -07:00
Fengjiang Li aa64c04ed8 [Predictive Back] AbstractSlideInView#mViewToAnimateInSwipeToDismiss can be private
Bug: 335467443
Test: presubmit
Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TRUNKFOOD
Change-Id: Ibf4b6f04d829daa6a109724c927bf466c25160d5
2024-04-18 13:37:34 -07:00
Liran Binyamin 4d91e16589 Merge "Give bubble team owners on launcher bubble dirs" into main 2024-04-18 18:45:54 +00:00
Shamali Patwa 7e5ed568b9 Revert "When getting a widget provider by name, check all categories"
This reverts commit 1f69351310.

Reason for revert: Testing odd behavior between google app and pixel weather and duplicate items issue

Change-Id: If181aa3e86969e8821b7e1cc765c3801f04489d2
2024-04-18 18:16:38 +00:00
Sunny Goyal b895788424 Merge "Using applicationId instead of packageName for xml substitution for increased compatibility" into main 2024-04-18 17:30:31 +00:00
Brandon Dayauon fe791d11aa Fix install apps button
- Setting the button's user via iteminfo to the privateprofile user
doesn't let the user to go into the play store. This was initially done so that
we can check the itemInfo to see if item is private space instead of just checking
if the item has a decorationInfo for collapse animation.
- The itemInfo change is reverted and we can check that case by checking with instanceOf PrivateSpaceInstallAppButtonInfo

bug:335600922
Test manually video: https://drive.google.com/file/d/1N2zOHvPmBptBaBf8SCqjBAM6UhV0lQBI/view?usp=sharing
Flag: ACONFIG com.android.launcher3.enable_private_space TRUNKFOOD

Change-Id: I09f22c9df5b4f9408eea6995eafea83e30c93a0d
2024-04-18 16:59:49 +00:00
Brandon Dayauon cf0ae01a51 Private space header to support RTL
bug:335658774
Test manually:
before: https://drive.google.com/file/d/1N8kFl28OhCJ7kTTo8VK74x-Mvaqi8GJ4/view?usp=sharing
after:https://drive.google.com/file/d/1N6AyVXcOSA48NveklIeqypueu7WLfP0V/view?usp=sharing
Flag: ACONFIG com.android.launcher3.enable_private_space TRUNKFOOD

Change-Id: I1c80e33f84251d42cd5821735457548de41db40d
2024-04-18 09:50:39 -07:00
Liran Binyamin b8ae441c10 Give bubble team owners on launcher bubble dirs
Flag: N/A
Test: treehugger
Bug: none
Change-Id: Ic5f69f34a1561ffb5a879a88b1532754e4b38f42
2024-04-18 12:18:21 -04:00
Liran Binyamin a7d2658d96 Merge "Update new bubble animation" into main 2024-04-18 15:51:39 +00:00
Mykola Podolian 3291b85e5e Merge "Update bubble bar to match visual spec" into main 2024-04-18 15:09:34 +00:00
Eghosa Ewansiha-Vlachavas f6ea0a3a2b Merge "Gate new desktop task menu button with device config check" into main 2024-04-18 15:02:52 +00:00
Eghosa Ewansiha-Vlachavas e885e54d90 Gate new desktop task menu button with device config check
Desktop windowing is enabled only when the desktop windowing flag is
enabled and the device is supported through setting a device config
flag. Add this device config check to the desktop task menu button so it
does not appear if the device is not compatible.

Flag: NONE
Fixes: 335178869
Test: atest -c NexusLauncherTests:com.android.quickstep.DesktopSystemShortcutTest
Change-Id: Ia2559c1ff57bb7921867e69a47d868c03eae57e7
2024-04-18 11:47:55 +00:00
mpodolian d25c65f9f2 Update bubble bar to match visual spec
Made bubble bar icon size adjustable and listen to the task bar
icon size changes. Additionally fixes an issue where the pointer arrow
could be misplaced.

Test: BubbleBarViewAnimatorTest.kt
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Bug: 295027436
Fixes: 334781761
Change-Id: Ie4ceee84cc00baa0186a3d5b431080c8495c7285
2024-04-18 10:00:42 +01:00
Sunny Goyal 29586169aa Using applicationId instead of packageName for xml substitution for increased compatibility
Bug: 335280439
Test: Presubmit
Flag: None
Change-Id: Ic0932224b964bfb57571adfc27ffdfd1ab716b45
2024-04-17 23:24:17 -07:00
Sunny Goyal a82ce1feda Merge "Making moving getDisplayType to DisplayController so that it can be accessed without IDP" into main 2024-04-18 05:51:58 +00:00
Anushree Ganjam 9afa9dd331 Merge "Add FastScrollSectionInfo with "info icon" when work educard exists." into 24D1-dev am: 3a3978cb7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/26947056

Change-Id: I037cf3efc3b07775f2605883f405484cf95bf663
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-18 03:46:16 +00:00
Anushree Ganjam 3a3978cb7a Merge "Add FastScrollSectionInfo with "info icon" when work educard exists." into 24D1-dev 2024-04-18 03:28:40 +00:00
Fengjiang Li 240dbab022 Merge "[Predictive Back] Swipe back within taskbar all apps should only scale down content view, rather than whole all apps sheet" into main 2024-04-18 03:20:59 +00:00
Fengjiang Li 1529052dcf [Predictive Back] Swipe back within taskbar all apps should only scale down content view, rather than whole all apps sheet
Bug: 335467443
Test: manual - took a video
Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TRUNKFOOD
Change-Id: I45980329f70ac1a8a8fc0e84be007f3385e40f58
2024-04-17 16:09:21 -07:00
Brandon Dayauon ef051ce98d Merge "Instead of popup to show letters, show private space icon on fast scrolling" into main 2024-04-17 22:32:59 +00:00
fbaron dd00e61874 Make hotseat column span responsive am: 6fba6cdb85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/26998643

Change-Id: I42c79fa7cc4640bb8a771b691c8bb2703e79a46e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-17 22:11:48 +00:00
Treehugger Robot f7d105bf5c Merge "Adds AssistStateManager#supportsShowWhenLocked." into main 2024-04-17 20:46:50 +00:00
Brandon Dayauon a1af2cee1c Instead of popup to show letters, show private space icon on fast scrolling
Use spannableString to show the icon instead of regular letters for the private space icons.

bug:304752744
Test manual: https://drive.google.com/file/d/1LFy4-bu69Kuo8eV4erjJOsbkiQJs09kC/view?usp=sharing
Flag: None

Change-Id: I149d7aba6b0a4fdafacd2684e56827c7e1b9d724
2024-04-17 12:37:38 -07:00
fbaron 6fba6cdb85 Make hotseat column span responsive
Flag: NONE
Test: DeviceProfileDumpTest, DeviceProfileAlternativeDumpTest, HomeScreenImageTest
Bug: 325084912
Change-Id: Ifa9e8066662a1ab053f66b8800b739d813d2dab8
(cherry picked from commit e4b0b71faa)
2024-04-17 17:56:58 +00:00
Liran Binyamin da1a7162e3 Merge "Suppress bubble animation when bar is hidden" into main 2024-04-17 17:45:14 +00:00
Sunny Goyal 25c4276ba9 Making moving getDisplayType to DisplayController so that it can be accessed without IDP
Bug: 335280439
Test: Presubmit
Flag: None
Change-Id: Ib1ef3c970a56044c81e36c4af67981715fe50a9e
2024-04-17 10:39:50 -07:00
Fengjiang Li 34f2c92e39 Merge "[Predictive Back] If back swipe while widget picker is in search mode, we should scale down the content view, rather than the bottom sheet" into main 2024-04-17 16:53:54 +00:00
Sebastián Franco f0c030380a Merge "When getting a widget provider by name, check all categories" into main 2024-04-17 16:24:21 +00:00
Liran Binyamin 0b114ebd46 Suppress bubble animation when bar is hidden
This change suppresses the new bubble animation when the notification shade is open and when the device is locked.

Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Fixes: 332912942
Test: manual
     - Use test app to trigger a bubble with delay
     - Lock the device/pull down the notification shade
     - Observe the bubble is not animating
     - Unlock/collapse the shade
     - Observe new bubble was added to the bubble bar
Change-Id: I0b1d42a9d57b29807f113ae45ff60349341272ef
2024-04-17 11:22:04 -04:00
Luca Zuccarini 840e67c17d Settle without jumping at the end of the home transition.
We dynamically target the actual position of the icon during the
animation, instead of the final position. This way, whenever we catch up
we can swap to the actual icon seamlessly. If we don't do this, the
spring ends before the scale and the is a snap from the final position
to the currently scaling position.

Bug: 298089923
Flag: ACONFIG com.android.launcher3.enable_scaling_reveal_home_animation DISABLED
Test: see videos in b/298089923#comment9
Change-Id: I36f19416552d4981b3d9f62a6eb387a08432dd4f
2024-04-17 14:33:01 +00:00