Commit Graph

48422 Commits

Author SHA1 Message Date
Bill Yi dae033fd91 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 9870f0daf5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I68872c36a3ca97b1ae5e59679fd27d7a20068f60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 16:33:52 +00:00
Bill Yi b85d2407ec [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1af69afde2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8f60a6fc742721c917021b93cc6f9cdf22b5a049
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 16:33:32 +00:00
Ming-Shin Lu 4a48cf7827 Remove hideCurrentInputMethod from RecentsAnimationController
Since CL[1] migrate hide IME logic when quick switching split-screen
task to InputMonitor.

As a result, remove unused API since it would be no longer to
expose hideCurrentInputMethod for launcher to handle gesture.

[1]: Ibfcd48e623336c4690b71c4db0ce1ad8f5b26fc9

Bug: 166736352
Bug: 193990612

Test: manual test as steps
1) launch any apps with focusing an editor
2) from overview, select any app to enter split-screen mode
3) taping the editor to show the keyboard
4) swipe up to overview or quick switch app tasks
5) expect the keyboard will be hidden when starting the gesture.

Change-Id: I76b93af015db098e836795f72f31b663238d9a47
2022-07-20 00:15:53 +00:00
Jeremy Sim e174143358 Merge "Fix small bug with Overview action button placement" into tm-qpr-dev 2022-07-19 23:29:32 +00:00
Andy Wickham a2e9ce3b68 Merge "Notifies All Apps header when profile tab switches." into tm-qpr-dev 2022-07-19 23:22:51 +00:00
Bill Yi 9870f0daf5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ecfe4804f27600bc580d0b963a4ab890797f6ab
2022-07-19 13:34:57 -07:00
Bill Yi 1af69afde2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idebfc4f59f05055792b26f034f1d918d0547e851
2022-07-19 13:34:17 -07:00
Tracy Zhou 3e64f94387 Merge "Add splitFromOverviewForTablet test" into tm-qpr-dev 2022-07-19 19:06:47 +00:00
Sebastián Franco df1c1c84b5 Merge "Adding test for the Widgets reordering." into tm-qpr-dev 2022-07-19 16:36:31 +00:00
Alex Chau 69a83d0d00 Merge "Use collapse handle area height to calculate QSB margin on tablet" into tm-qpr-dev 2022-07-19 16:14:03 +00:00
Pat Manning 01a7bcc665 Merge "Move BaseActivityInterface task size methods to DeviceProfile." into tm-qpr-dev 2022-07-19 10:31:51 +00:00
Tracy Zhou 86a844c976 Add splitFromOverviewForTablet test
Design doc: go/split_tapl

Bug: 238553914
Test: run this test

Change-Id: Ibb385d852f73dee10470d14c4962cf482740105d
2022-07-19 01:57:35 +00:00
Jeremy Sim d97cf8ad6e Fix small bug with Overview action button placement
Overview actions will now be centered properly when 3-button nav is active on tablets in landscape.

On most tablet and foldable screens, we shift the Overview action buttons left to accommodate when 3-button nav is active. The only exception is large-screen tablets in landscape orientation, where there is enough room to center them. This patch adds a conditional for that case.

Fixes: 239247432
Test: Manual
Change-Id: I96f9d5e428273b0611463a1f0f5898910eefe5ce
2022-07-18 23:22:21 +00:00
Sunny Goyal 7dcc9831e2 Merge "Removing unnecessary work adapter wrapper" into tm-qpr-dev 2022-07-18 21:12:04 +00:00
TreeHugger Robot aac6bbf6fd [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 733881a91d -s ours am: e744d500ea -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ieb19b068b29fe20a86e8239aa44c26696b9c47f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 20:06:12 +00:00
Bill Yi 2c9b40d144 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 744cf122ba -s ours am: bee8b97cf0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9a1d64544325cd0af6144622e42afd994542f7bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 20:06:06 +00:00
TreeHugger Robot ab0a97466c [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 6ddfcdd15a -s ours am: 4b6a55aa5c -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic49219de04db82f9e833ba14073f29bfe7c32c5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 20:05:58 +00:00
Bill Yi e40e1c4e5d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: afc7d6fdc5 -s ours am: 1f70cb45b2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8a24a25172347dcfc851be1b61edbbbbad460882
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 20:05:44 +00:00
Bill Yi 7fc6ec146d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a68ca5344f -s ours am: f99a45c87f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6d42c4402df9e124ae600b2b8721248140d519ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 20:05:32 +00:00
TreeHugger Robot e744d500ea [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 733881a91d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iac71a41377b014c9a9d8c7e11826c72b4e0a7553
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 19:40:03 +00:00
Bill Yi bee8b97cf0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 744cf122ba -s ours
am skip reason: subject contains skip directive

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

Change-Id: I51fc81b97a74ed8c296f2c7b2145fa2fc9cc3d7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 19:39:53 +00:00
TreeHugger Robot 4b6a55aa5c [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 6ddfcdd15a -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic525bf27d3d3297285760089dca9410242a73096
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 19:39:44 +00:00
Bill Yi 1f70cb45b2 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: afc7d6fdc5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I31fdf6daa93f119217b772f7bc20db3a3c66fbba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 19:39:32 +00:00
Bill Yi f99a45c87f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a68ca5344f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9e00d334c337341b49fcd014019cfcf39e296980
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 19:39:23 +00:00
TreeHugger Robot 733881a91d Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-07-18 19:18:27 +00:00
TreeHugger Robot 6ddfcdd15a Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-07-18 19:18:27 +00:00
Sebastian Franco 5cba476362 Adding test for the Widgets reordering.
TAPL design chagnes at https://docs.google.com/document/d/1PdJZZIn-85-UMRFGZuqj-tJgruIWcg31lZnrb34iBTY/edit?resourcekey=0-uAZuiLCDFV9YhOtLB7wQHQ

The tests consist of a board representing the widgets on
the CellLayout a position to move the main widget (m) to
and the resulting board.

iiiii    iiiii
-----    --x--
-xxx- -> -xmx-
--m--    -----
-----    -----

Move m to 2,2.

Then whe make sure the device corresponds with the resulting
board.

I had to add the event TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Widgets.onLongClick");
on ItemLongClickListener because the tests where not expecting
a long press on a widget after is being place on the
workspace.

Also, I needed to add the option to drag a widget
to a specific point instead of the previous option
of only dragging to the workspace.

Fix: 231449779
Test: Run the test and make sure they pass.
Change-Id: I58183b7ce2ca64c999e21073cce5e0ba6e6f3a9e
2022-07-18 11:52:12 -07:00
Pat Manning 4e73e5e352 Move BaseActivityInterface task size methods to DeviceProfile.
Fix: 238593212
Test: DeviceProfilePhoneTest.kt
Test: DeviceProfileVerticalBarTest.kt
Test: DeviceProfilePhone3ButtonTest.kt
Test: DeviceProfileVerticalBar3ButtonTest.kt
Test: DeviceProfileTabletLandscapeTest.kt
Test: DeviceProfileTabletPortraitTest.kt
Test: DeviceProfileTabletLandscape3ButtonTest.kt
Test: DeviceProfileTabletPortrait3ButtonTest.kt
Test: DeviceProfileTwoPanelLandscapeTest.kt
Test: DeviceProfileTwoPanelPortraitTest.kt
Test: DeviceProfileTwoPanelLandscape3ButtonTest.kt
Test: DeviceProfileTwoPanelPortrait3ButtonTest.kt
Change-Id: I30324d34ca119a467f530b590949743c2ba7b91a
2022-07-18 16:35:02 +01:00
TreeHugger Robot 55ce03eee5 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-07-17 21:19:41 +00:00
TreeHugger Robot 98b05f09a9 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-07-17 21:19:41 +00:00
TreeHugger Robot b9f3d847e0 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-07-17 21:19:41 +00:00
Bill Yi fb05d7d29f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 3be1b4c271 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I794e07c4e14cf2b88230069846bf2e394220c6e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-17 18:43:37 +00:00
Pat Manning 351aadc4f5 Merge "Add missing overview progress calls, track grid progress for thumbnail splash." into tm-qpr-dev 2022-07-16 19:38:59 +00:00
Sunny Goyal cba5f9a64e Removing unnecessary work adapter wrapper
Simplifying view type constants to make it easier to add new view types

Bug: 234008165
Test: Verified on device
Change-Id: I96589ceba362ea7e75afdfc3fe8da3be214aa682
2022-07-15 16:24:31 -07:00
Andy Wickham 85f9ce48ef Notifies All Apps header when profile tab switches.
This fixes scroll listeners which control the header from Taskbar.
In other instances of the All Apps container (i.e. from Launcher),
the search bar indirectly updates the header because resetSearch
is called, which also resets the header. Separately, I would like
to clean that up so that AllAppsContainerView does not get
controlled by the search bar (maybe as part of a larger reset
cleanup).

Fix: 236812759
Test: Manual on device with Taskbar
Change-Id: I9921e89c87d5e18e4b28854fbb373f24b4189014
2022-07-15 15:02:28 -07:00
Winson Chung 6c057718ac Merge "Replacing deprecated method" into tm-qpr-dev 2022-07-15 20:47:22 +00:00
Sebastián Franco cd195b6c0a Merge "Fixing findNearestArea to account for the padding." into tm-qpr-dev 2022-07-15 16:53:50 +00:00
Pat Manning d61ccbb7ed Add missing overview progress calls, track grid progress for thumbnail splash.
Test: manual
Bug: 202826469
Change-Id: I29578f44fd87423437ad6c73dc2be1ad630a55d6
2022-07-15 16:41:56 +01:00
Sihua Ma 68c6b81d2a Merge "Added functions to pass launcher widget span info to preview" into tm-qpr-dev 2022-07-15 11:06:02 +00:00
Alex Chau ded0aa126d Use collapse handle area height to calculate QSB margin on tablet
Fix: 228324815
Test: Check AllApps on different size tablets
Change-Id: Ia7064c21dd1810051e93eedee36bc14f125d8352
2022-07-15 10:57:53 +01:00
Tony Wickham 2765792793 Merge "Provide 0 insets to VoiceInteractionWindow in gesture nav" into tm-qpr-dev 2022-07-14 22:17:09 +00:00
Sihua Ma dfd8bfc7e0 Added functions to pass launcher widget span info to preview
To calculate the widget scales correctly for the launcher preview in different grids, the span info of the widgets in the launcher is necessary. Querying the launcher widget info in the database and passing it to the preview render.

Test: Verified that no exceptions were happening when changing preview grid layouts
Bug: 228328759
Change-Id: I681d21b176c8fe5208431a79009d9ba8279cda6a
2022-07-14 20:17:19 +00:00
Winson Chung 4c05fa3fba Replacing deprecated method
Bug: 219861883
Test: Builds
Change-Id: I8e008c042cb7fe74ced512b6a074892743ef25f8
2022-07-14 18:51:18 +00:00
Sunny Goyal 615f2edb76 Merge "Fixing Launcher crash if activity restarts while resixing widget" into tm-qpr-dev 2022-07-14 18:40:27 +00:00
Bill Yi 3be1b4c271 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I14b4f880ada60d2edc6742e273de01f7067c6aa0
2022-07-13 21:24:31 -07:00
Bill Yi 76494bebb4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie0edd8727c5d8d9308d4f3677e10e31e235da598
2022-07-13 21:23:37 -07:00
Bill Yi 744cf122ba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7227c022bbfabf97b5a2e56ddc13b9447af97b55
2022-07-13 21:22:42 -07:00
Bill Yi ef46825eb4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie30d608b08e253a8757fd48beefa54e38a363e06
2022-07-13 21:20:20 -07:00
Bill Yi afc7d6fdc5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I51d4492bab18fc272530df2c4bcedcf677ec859f
2022-07-13 21:19:43 -07:00
Bill Yi e5bf619267 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iafc3c190549cdbe7d6fae074a6937dff516039dd
2022-07-13 21:17:40 -07:00