Commit Graph

75960 Commits

Author SHA1 Message Date
fbaron 3da10ff1d3 Fix bug where hotseat disappears am: 95df178e4f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27299232

Change-Id: I3b5a60e37cff9f9a7a0eae95bb0f1d712ec1ef57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 20:41:40 +00:00
Vadim Tryshev 840b44043f Merge "Cleaning up TestProtocol" into main 2024-05-10 20:37:02 +00:00
Hyunyoung Song 2ee174e696 Merge "Run test in postsubmit for openPrivateSpaceSettings_triggerCorrectintent Bug:339109319 Test: not needed as disabling test in presubmit Flag: NA" into main 2024-05-10 19:28:13 +00:00
Vadim Tryshev 575d15f231 Cleaning up TestProtocol
Bug: 262282528, 279059025, 322823209
Test: presubmit
Flag: N/A
Change-Id: I9af6e3f1fc49b2ebf0d99df8c4514de0bddee8f2
2024-05-10 11:03:24 -07:00
Charlie Anderson 0171058c0f Merge "add more logging around package updates and widget click handling in Launcher" into main 2024-05-10 17:19:06 +00:00
Helen Cheuk 399638ac23 Merge "Add focus outline to AppPairIcon" into main 2024-05-10 16:46:09 +00:00
Michał Brzeziński b839430047 Merge "Rename gesture_blocking_activities to back_gesture_blocking_activities" into main 2024-05-10 16:32:51 +00:00
fbaron 95df178e4f Fix bug where hotseat disappears
Fix: 336096469
Bug: 339700174
Flag: NONE
Test: n/a
Change-Id: Ie567c08445d7743281f501c782a8fd51a75ad9bc
(cherry picked from commit cf10603ed3)
2024-05-10 15:44:57 +00:00
Shamali Patwa 26d55c2a7e Merge "Fix NPE in WidgetsTwoPaneSheet" into main 2024-05-10 14:28:00 +00:00
Charlie Anderson 5fa4f02c70 add more logging around package updates and widget click handling in Launcher
Bug: 336976070
Test: locally verified
Flag: N/A

Change-Id: I8a1204fb6d96eccbc20b0ddd3c1e6fb1ae75fc6c
2024-05-10 10:00:51 -04:00
Treehugger Robot a8c1628d6e Merge "Fix bug where hotseat disappears" into main 2024-05-10 08:47:33 +00:00
Jordan Demeulenaere 3af63d8504 Merge "Delay TransitionAnimator.onAnimationEnd by one frame (2/4)" into main 2024-05-10 07:36:34 +00:00
hyunyoungs 380014f131 Run test in postsubmit for openPrivateSpaceSettings_triggerCorrectintent
Bug:339109319
Test: not needed as disabling test in presubmit
Flag: NA

Change-Id: Idf106f30d9f4de949385545566345913dc551920
2024-05-09 23:42:08 -07:00
Winson Chung 36f38cb028 Merge "Add multi-instance state to item infos" into main 2024-05-10 04:16:38 +00:00
Willie Koomson 2b73f89b14 Fix NPE in WidgetsTwoPaneSheet
Check if mSelectedHeader is null.

Bug: 27214675
Test: build
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: I640ac0b46846b94655414788177fcc1fa52fcee8
2024-05-10 00:52:31 +00:00
Ats Jenk 8ed5d288d2 Merge "Get display size from DisplayController instance" into main 2024-05-09 22:58:38 +00:00
fbaron cf10603ed3 Fix bug where hotseat disappears
Fix: 336096469
Bug: 339700174
Flag: NONE
Test: n/a
Change-Id: Ie567c08445d7743281f501c782a8fd51a75ad9bc
2024-05-09 15:44:57 -07:00
Holly Jiuyu Sun 9ae3b91c44 Merge "[PS] Add TAPL test for tile injection." into main 2024-05-09 22:38:01 +00:00
Anushree Ganjam 798340dc6d Merge "Hardcode the className instead of class.getSimpleName()." into main 2024-05-09 20:13:13 +00:00
Ats Jenk 5b650d0796 Merge "Update expanded view drop target size based on value from shell" into main 2024-05-09 20:06:10 +00:00
Willie Koomson 8b0469b096 Merge changes I2fd961c0,Id3d21f44 into main
* changes:
  Go to NORMAL state before adding widget with add button
  Retain add button on rotation for two-pane and bottom sheet
2024-05-09 19:04:15 +00:00
Winson Chung 94e8ad0731 Add multi-instance state to item infos
- Add legacy resource for supported multi-instance apps that
  matches the current SystemUI resource of the same name, and will
  be removed as apps migrate to the V manifest property to declare
  multi-instance support
- Load the multi-instance state from PackageManager when the db is
  first loaded or when packages are updated
- The multi-instance check is then used to determine if an app pair
  can be saved (ie. whether the action can be shown)

Bug: 323112914
Test: atest NexusLauncherTests

Change-Id: I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c
2024-05-09 18:43:38 +00:00
Sukesh Ram e514bac5e3 Merge "Remove Logs for TaplOverviewIconTest#testOverviewActionsMenu" into main 2024-05-09 18:26:31 +00:00
Tracy Zhou 7ad66e4741 Fix back button sometimes not showing up in the initial setup screen am: bd940cdcee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27277373

Change-Id: I7f511dc812d1adbda13721b88ac20cc6dbac23a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 17:31:33 +00:00
Michał Brzeziński 13025d7aca Rename gesture_blocking_activities to back_gesture_blocking_activities
This is to make it more clear that this is only for the back gesture.

Bug: 309928033
Flag: None, just renaming resource
Test: just renaming resource
Change-Id: Id48fada3bc3b6bc91b80337def3bddcdd40dde3c
2024-05-09 14:37:18 +00:00
Uwais Ashraf 2a2be5dfee Merge "Add corner rounding to TaskThumbnailView" into main 2024-05-09 09:44:30 +00:00
Tracy Zhou bd940cdcee Fix back button sometimes not showing up in the initial setup screen
A few things to note
- We use gesture nav layoutter because it's the mode in which we show back button rendered by IME. There might be other historical reasons but it is what it is.
- The back button isn't necessarily laid out correctly with this layoutter (currently we don't adjust anything in layoutButtons.

Fixes: 338876161
Test: Repeatedly get in setup mode, and make sure the back button is visible
Change-Id: I402273c2868f3f46a12b00918dab3f36fbe82204
(cherry picked from commit 9d602e684c)
2024-05-09 05:50:58 +00:00
Tracy Zhou bfdd7d27c0 Merge "Fix back button sometimes not showing up in the initial setup screen" into main 2024-05-09 05:50:46 +00:00
Holly Sun 897791a9e7 [PS] Add TAPL test for tile injection.
Bug: 330892261
Test: tapl
Flag: aconfig com.google.android.apps.nexuslauncher.enable_inject_private_space_tile nextfood

Change-Id: I4cfaefa26a81a1026d62d4206d90881f323bffd3
2024-05-08 16:51:16 -07:00
Ats Jenk 5a4836b64f Get display size from DisplayController instance
DeviceProfile is not updated after rotation. Which led to drag to
reposition using landscape display size in portrait.

Bug: 330585402
Test: have device in landscape, drag bubbles and the bar itself
  left/right, observe that the drop target is shown when passing half
  the screen
  rotate device to portrait, start dragging again, observe that drop
  target is shown on the other side when passing half the screen
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Change-Id: I5c0e2e4ab47a669b6e178b45ab132989029f5913
2024-05-08 15:59:54 -07:00
Willie Koomson badcf77c28 Go to NORMAL state before adding widget with add button
Updates add button behavior to go to NORMAL state before adding the
widget to the workspace. This has the effect of dismissing the All Apps
view if it is open.

This fixes an issue where the add button did not work if used from the
WidgetsBottomSheet while All Apps is open, particularly if a new screen
had to be created. See screencasts in gerrit for before/after.

Bug: 335906123
Test: manual, add widget with button from all apps > bottom sheet while
 there is no space on the launcher
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: I2fd961c09c473045088feba5d572c26a812e6619
2024-05-08 22:56:53 +00:00
Willie Koomson 245c244fed Retain add button on rotation for two-pane and bottom sheet
Reselects the WidgetCell that was selected when reloading the sheet on
rotation. WidgetsFullSheet is excluded because it does not retain the
open header on rotation.

Bug: 331429554
Test: manual, see screencast
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: Id3d21f44b1dc525e144296f513f5a460fc51474c
2024-05-08 22:56:52 +00:00
Sukesh Ram 60cab37a23 Remove Logs for TaplOverviewIconTest#testOverviewActionsMenu
Remove logging for TaplOverviewIconTest#testOverviewActionsMenu.

Flag: NONE
Test: Manually tested in pixel 7.
Bug: 326073471
Change-Id: Ie19cdb10234fd50fc64f259b5dafe9881162e23d
2024-05-08 22:29:48 +00:00
Alex Chau ec547e0c32 Merge "Recycle thumbnailViews in DesktopTaskView" into main 2024-05-08 22:20:22 +00:00
Alex Chau 4205013b0a Recycle thumbnailViews in DesktopTaskView
- Changed mTaskContainers to a List
- Added an XML for TaskThumbnailView to make it compatible with ViewPool
- Removed mSnapshotViews variable, and streamlined DesktopTaskView binding logic to re-use thumbnailvIew from mTaskContainers or ViewPool

Bug: 249371338
Fix: 251586230
Test: manual
Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_mode DEVELOPMENT
Change-Id: Iab7575e9c36b8ebf3eb62f19f13d75ba671f9f4f
2024-05-08 22:19:27 +00:00
Federico Baron dd5f02efa0 Merge "Demote and add screenrecord for TaplUninstallRemoveTest" into main 2024-05-08 22:16:06 +00:00
Ats Jenk f3224cf847 Update expanded view drop target size based on value from shell
When a bubble drag starts, shell sends the current expanded view size
over as part of BubbleBarData. Update the size stored in
BubblePinController based on latest value.
Update drop target visual to match the spec. It should have 24dp insets
compared to expanded view and 28dp corner radius.

Bug: 330585402
Test: drag bubble in landscape, check that drop target for expanded view
  matches with what is shown when expanded view is dragged
Test: drag bubble in portrait, check that the drop target for expanded
  view, matches with what is shown when expanded view is dragged
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Change-Id: Ic11c4c5c675107543ba08f24a4138cda422d24c1
2024-05-08 14:05:03 -07:00
Treehugger Robot 05f201e8ac Merge "Marking testPrivateSpaceLockingBehaviour as disabled." into main 2024-05-08 20:59:02 +00:00
Jeremy Sim 7d69804e4e Merge "Fix bug with double-relayout of Overview Actions View" into main 2024-05-08 20:24:21 +00:00
Treehugger Robot cea7a1b3f8 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: fbacef3b2b -s ours
am skip reason: contains skip directive

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

Change-Id: If414a69ced23eca9f756280487833370c83eac5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-08 19:44:01 +00:00
Bill Yi 8ff35400b4 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 61a4e89812 -s ours
am skip reason: contains skip directive

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

Change-Id: I2770a00737d4ca7074d7ea3aae86c88309a5c04b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-08 19:43:52 +00:00
Anushree Ganjam c9eda41c31 Hardcode the className instead of class.getSimpleName().
class.getSimpleName() causes issues with obfuscation.

Bug: 332171918
Test: Manual
Flag: NA
Change-Id: I5119a7ba0e4e27d8745c94df67881934fed282a4
2024-05-08 12:31:24 -07:00
Holly Jiuyu Sun e498d6ea55 Merge "allKeys in DeviceConfigHelper should be populated with keys." into main 2024-05-08 19:30:09 +00:00
Treehugger Robot fbacef3b2b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-08 19:24:29 +00:00
Treehugger Robot b4e46e1e03 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-08 19:07:16 +00:00
Treehugger Robot bdccfe4fd2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-08 19:07:16 +00:00
Federico Baron b09442e16a Merge "Reduce steps for goHome()" into main 2024-05-08 17:58:38 +00:00
helencheuk cc54eb4907 Add focus outline to AppPairIcon
Bug: 327470960
Test: Manual
Flag: ACONFIG com.android.launcher3.enable_focus_outline Trunkfood
Change-Id: I6a9c6abc3441b5f40bb4f352a844cecad4a1474b
2024-05-08 18:10:52 +01:00
fbaron 136b7d347e Demote and add screenrecord for TaplUninstallRemoveTest
Flag: NONE
Bug: 338869019
Test: TaplUninstallRemoveTest#testAddDeleteShortcutOnHotseat
Change-Id: Icfc2f22ecd6eb4bec3309e60adb4ec44fb89eb94
2024-05-08 09:51:37 -07:00
Sihua Ma 8128575f46 Merge "Move cell layout tests to deviceless tests" into main 2024-05-08 16:50:44 +00:00