Commit Graph

58436 Commits

Author SHA1 Message Date
Alex Chau 38dae63910 Only support manual stashing while in app
- For taskbar in overview, don't allow stashing

Fix: 253042515
Test: With taskbar in overview, long press do nothing. Taskbar is still stashable in app
Test: Without taskbar in overview, taskbar still transform to nav handle in overview
Change-Id: I8f353a473a8570df72acda2338c4b984a69dc5c0
2022-10-12 18:16:50 +01:00
Sebastian Franco d468299c0f Moving the class LayoutParams to a file outside CellLayout
I'm moving the LayoutParams to another file to start the decoupling
of the Reorder outside of the CellLayout.

Also, I change the name from LayoutParams to LauncherLayoutParams to prevent confusion with ViewGroup.LayoutParams making it explicit that this are different LayoutParams.

Bug: 188081026
Test: atest ReorderWidget
Change-Id: I92251c5540ffcf5ece7b933e6f6c836eb825c997
2022-10-12 16:14:42 +00:00
Evan Rosky 3ecceb8680 Merge "Enable Shell Transitions" 2022-10-12 16:08:27 +00:00
TreeHugger Robot 92d7ca5fe9 Merge "Enable taskbar in overview by default" into tm-qpr-dev am: 2613431914 am: afda58246e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20111701

Change-Id: I82afb64f29c925a4e39c5ab1bb2b0304733bfd43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 13:22:02 +00:00
TreeHugger Robot afda58246e Merge "Enable taskbar in overview by default" into tm-qpr-dev am: 2613431914
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20111701

Change-Id: I510f11b58b6d950c649af9fd77137ffabe734411
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 12:50:29 +00:00
TreeHugger Robot 2613431914 Merge "Enable taskbar in overview by default" into tm-qpr-dev 2022-10-12 12:21:14 +00:00
Pat Manning de2aefe5d6 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev am: a283b551d2 am: e793bac632
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19886384

Change-Id: I6474fc429e326bfedad7813b5b11ad5aa217492e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 11:55:47 +00:00
Pat Manning e793bac632 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev am: a283b551d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19886384

Change-Id: Ia8968e6ec48f3e877ba020d0498afa0520248324
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 11:53:12 +00:00
Pat Manning a283b551d2 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev 2022-10-12 11:34:41 +00:00
Jeremy Sim 0ac4708396 Prevent doubling up on split placeholder insets
This patch makes it so that the split placeholder uses only one inset for buffering the top of the icon: either the default split placeholder inset, or the device's built-in screen inset.

Currently, when we determine the size of the split placeholder, we add the placeholder's default inset to the device's built-in screen inset (camera cutouts, etc.). On some devices, this causes a very large combined inset, and it doesn't leave enough room for all the other UI elements, especially when 3-button mode is active. This patch cuts out one of the insets by selecting only one of the insets to respect (the larger one).

Fixes: 241164191
Test: Manual, checked all emulated inset types on a variety of screen sizes
Change-Id: Ica0e791bf4b8b757ad3fb87ab1cf3105b97a61dc
2022-10-11 21:26:43 -07:00
TreeHugger Robot 61d513fa56 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev am: 5c4b6b50d7 am: dd1a143a29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20086056

Change-Id: I75f2750949b10f690f1210fef85aeb98342f4452
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 03:37:39 +00:00
TreeHugger Robot dd1a143a29 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev am: 5c4b6b50d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20086056

Change-Id: I785f86e0daa82618a03c1633ea0efc710e482139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 03:04:33 +00:00
TreeHugger Robot 5c4b6b50d7 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev 2022-10-12 02:27:37 +00:00
TreeHugger Robot 1bfe930931 Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev am: 1337b31b3f am: 997edd2dad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20076231

Change-Id: I04ee6b7e1cd23991f46c28395471ecbaebc86424
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 01:22:52 +00:00
TreeHugger Robot 997edd2dad Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev am: 1337b31b3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20076231

Change-Id: I47588e0653e55228b0ba42b288ae437b29e38e9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 00:51:03 +00:00
TreeHugger Robot 1337b31b3f Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev 2022-10-12 00:17:33 +00:00
Vinit Nayak 2081742cb7 First pass at Taskbar layout UI polish for SUW
Bug: 231906478
Change-Id: I5d55d1e33f928d4b8034c356565a0f9d8bc5c3fb
2022-10-12 00:04:27 +00:00
Brandon Dayauon 1e5fcc1909 Merge "Scale icons from search to make app icons big like AA -> workspace" into tm-qpr-dev am: 956851e7ca am: 215ddb9b92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19774829

Change-Id: Id68d31a6f91dd99b85bf4943998834d4fa25a917
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 23:39:30 +00:00
Brandon Dayauon 215ddb9b92 Merge "Scale icons from search to make app icons big like AA -> workspace" into tm-qpr-dev am: 956851e7ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19774829

Change-Id: Ic092c9a5cc32f42eaf7f9a8e0dc34ddd16aae310
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 23:06:52 +00:00
Brandon Dayauon 956851e7ca Merge "Scale icons from search to make app icons big like AA -> workspace" into tm-qpr-dev 2022-10-11 22:40:13 +00:00
Schneider Victor-tulias a0be92c830 Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly.
Bug: 244593270
Test: Manually checked logs
Change-Id: Ie6d0395a45a025d1562a722154d3dd3b42618ccc
2022-10-11 15:12:13 -07:00
Sebastián Franco 41abc6d89b Merge "Prevent double touch inputs in the BaseDragLayer" into tm-qpr-dev am: 73049b14b9 am: bd484f174a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20040579

Change-Id: I4861646ea4b134560d572d14df5c9750f144b186
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 21:29:27 +00:00
Sebastián Franco bd484f174a Merge "Prevent double touch inputs in the BaseDragLayer" into tm-qpr-dev am: 73049b14b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20040579

Change-Id: Id45956331342c37e1d5f81d355c07c82837fc9d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 20:57:03 +00:00
Brian Isganitis 56d4571bbf Merge "Move recents controller to end of params for easier merging." 2022-10-11 20:53:44 +00:00
Brandon Dayauon d3755f46cc Scale icons from search to make app icons big like AA -> workspace
when dragging from search.

To scale the icon during dragging (instead of long press) I created a scale variable within DragOptions
so that right before dragStart gets called in DragController.java (in callOnDragStart())
the dragview scales before dragging..
 * note: the scale from search is 1.687 and the scale from allApps is 1.107
- included searchResult and smallSearchResult
- Added animation for scaling icon (used Interpolators.EMPHASIZED 500ms as suggested by motion designer)
- Cancel animation when drag finishes

bug: 222666176
test: Manual - after: https://drive.google.com/file/d/1ZZHnXlzdTxlM-RUIdJ6EOYkPPg6tCUxC/view?usp=sharing
before: https://drive.google.com/file/d/1NpBz3kT_slHXtpXObr_G8K6SZYG9_bLX/view?usp=sharing

Change-Id: I01309a3be928987ba00422ad947b80a3df865973
2022-10-11 13:29:35 -07:00
Sebastián Franco 73049b14b9 Merge "Prevent double touch inputs in the BaseDragLayer" into tm-qpr-dev 2022-10-11 20:22:45 +00:00
Xin Li 66c4cffd27 [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9129937 am: 6c5e11c3d5 -s ours am: cded8966ef -s ours
am skip reason: Merged-In Ie774ec691c1005f3eb37600db6b25da57b9a88ea with SHA-1 601cf30cf6 is already in history

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

Change-Id: I1045481594bad52c47c52640e5ff8bfdf470dd89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 20:09:33 +00:00
Xin Li cded8966ef [automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9129937 am: 6c5e11c3d5 -s ours
am skip reason: Merged-In Ie774ec691c1005f3eb37600db6b25da57b9a88ea with SHA-1 601cf30cf6 is already in history

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

Change-Id: I646fb17cac60ac6d4316e4f4bc4b03e87e93ba79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 17:55:35 +00:00
Alex Chau 517131ae1c Enable taskbar in overview by default
- Also changed expectation in test that taskbar is visible in overview

Fix: 245320601
Test: presubmit
Change-Id: If1ed44f542e5907860f7ab8182e4b45172346f3f
2022-10-11 18:48:45 +01:00
Alex Chau de1d8456d3 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev am: e2791f0cf6 am: 94183eeaf9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20132885

Change-Id: I67023a798eeba419834cdc91a89b3dc2e3b9aee1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 15:05:01 +00:00
Sebastian Franco 68fc44ffad Prevent double touch inputs in the BaseDragLayer
If you hold a long press and while pressing you start another
long press again with another finger, then a new onLongPress event
will trigger and in some cases we are not processing that case.

By ignoring the evetns with the flag ACTION_OUTSIDE we can prevent
such cases.

Fix: 247477725
Test: ReorderWidgets
Change-Id: I31833bc54db2771809562bd1f92c8523eb2f05ab
2022-10-11 09:54:46 -05:00
Alex Chau 94183eeaf9 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev am: e2791f0cf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20132885

Change-Id: I563d31986ece6169cfe6cfca8f815b611277ba6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 14:33:16 +00:00
Alex Chau e2791f0cf6 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev 2022-10-11 14:04:57 +00:00
Alex Chau 0733ebd3c1 Run setCurrentPage in applyLoadPlan after scroll initialized
- Also combined the 2 setCurrentPage call in applyLoadPlan into 1
- Otherwise setCurrentTask may set to page 1 unexpectedly due to page 0's scroll being invalid and out of range

Bug: 246283207
Bug: 238461210
Test: Split screen with 2 apps, click back, go to overview again, should snap to focsued task
Change-Id: I3b57655c810668fe244659437fbd4a745ca02d21
2022-10-11 12:36:35 +01:00
Jon Miranda 23252222e7 Add ENABLE_TRANSIENT_TASKBAR feature flag. am: efd41a717e am: 0a69f652ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20159824

Change-Id: I547e3fd9770bf965cdadeb69c8decffdd81bbe61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 06:00:03 +00:00
Jon Miranda 0a69f652ff Add ENABLE_TRANSIENT_TASKBAR feature flag. am: efd41a717e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20159824

Change-Id: I08f4be61a2f26ad7d95affe56245806713393a5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 05:29:23 +00:00
Jon Miranda efd41a717e Add ENABLE_TRANSIENT_TASKBAR feature flag.
Bug: 252905206
Test: N/A
Change-Id: I7995e4fc0a181aee6932e0bee041b74a4241053e
2022-10-10 18:46:19 -07:00
Bill Yi 9be06babcf [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours am: 8a8269bf04 -s ours am: 4a0dd44619 -s ours am: e4a5413b41 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7d4e374a96499887e6f9aa90fbb9cddb5c58c305
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 01:42:01 +00:00
Bill Yi e4a5413b41 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours am: 8a8269bf04 -s ours am: 4a0dd44619 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I15fe1e97b0d10399764f8292e7a6bfc7e0d2d52d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 01:09:14 +00:00
Brian Isganitis 67c20e0d99 Move recents controller to end of params for easier merging.
Test: Compiles
Fix: 252899814
Change-Id: I7c6a464b0d6b40bbda9b4fae3da153629e4346dc
2022-10-10 17:48:51 -07:00
Bill Yi 4a0dd44619 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours am: 8a8269bf04 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib0ce5bf091d67d65533cdcb6c98a5f04643d883a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 00:42:17 +00:00
Bill Yi 335337f92e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours am: 3e7d77c512 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I386f60486f85b6d8e2a46d06ea8f7bdef95497a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 00:41:41 +00:00
Bill Yi 8a8269bf04 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id0934177b8372b28813095e6f3457eb3696e88ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 00:12:17 +00:00
Bill Yi 3e7d77c512 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 897d7d4d85 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4df2b6af0cdb4c397868a0794bffe8bf8a377f8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 00:11:32 +00:00
Android Build Coastguard Worker 0385aa48f8 Merge cherrypicks of [20119299] into tm-qpr1-release.
Change-Id: I2e5f8a7d63dc2f0a691b767c53357713d8fe2c45
2022-10-10 23:01:50 +00:00
Andy Wickham 441cdeb082 Differentiate between app row and shortcut icons.
This is a simplified version of ag/20118087. It fixes the bug
with rows of shortcuts being in the search results (e.g. Gmail
and WhatsApp conversations), but it will not handle cases where
there are multiple rows of app icons. Currently I do not know of
any cases where that would happen.

Test: Manual with and without inject_web_top (which moves app row)
for WhatsApp and Gmail with AiAi fishfood.
Bug: 239927522

Change-Id: Ie9c62c0ee81086801942328c8770f37d5bf622c3
(cherry picked from commit 0d3c3d8fc5)
Merged-In: Ie9c62c0ee81086801942328c8770f37d5bf622c3
2022-10-10 23:01:12 +00:00
Ats Jenk 3c59d9b345 Desktop tile that is a snapshot of desktop
Create a desktop recents tile that shows a snapshot of the freeform
tasks running on desktop.
Scales them down and positions them in the same location as they would
be on the desktop.

Bug: 244348395
Test: manual
Change-Id: Ieb5830a331691844769003189f557c4b7e4cd35c
2022-10-10 15:50:31 -07:00
Federico Baron 55dfd41b6d Merge "Add flags for new home gardening mode" into tm-qpr-dev am: 3c8ae3efff am: 71f32b4f20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20123118

Change-Id: I483a2742d4d5efe1b33dd6fcf62eb0437de01ac4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 21:35:19 +00:00
TreeHugger Robot d2ee73ff28 Merge "Round split layout values instead of using int cast" into tm-qpr-dev am: 803f88b89e am: b3d89f0fbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20142330

Change-Id: I91f232509bdfe56a3c848edb9fcb836b3fbd448e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 21:35:09 +00:00
Vinit Nayak 2d0d43ceb7 Merge "Improve splitscreen recents animation in seascape" into tm-qpr-dev am: 8addaad158 am: 9388213c9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20105878

Change-Id: I3fde4dfb5611f854d7a52e7f793295379575c879
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 21:34:40 +00:00