Commit Graph

31926 Commits

Author SHA1 Message Date
Hyunyoung Song 0c1901bddd Merge "Check IME visibility check before calling IMM.hide()" into sc-dev 2021-05-01 19:32:46 +00:00
Jonathan Miranda 8d7bc38c34 Merge "Use color extraction for arrow popup." into sc-dev 2021-05-01 14:00:41 +00:00
Hyunyoung Song e25ee1ed98 Check IME visibility check before calling IMM.hide()
Bug: 183062683
Bug: 185558351

Test: manual
Change-Id: Ib3bee0f895cc03c6faeb662d078d013ac4d6e406
2021-05-01 01:50:19 -07:00
Jon Miranda 242c805f82 Use color extraction for arrow popup.
- Updated logic to accept any view that is a a child of draglayer
  (from being workspace dependent)
- Move color extraction logic from widget class to utility class.
- Initial CL, future CL will interpolate between colors
  and expand color extraction to other abstract floating views.

Bug: 175329686
Test: long press on colorful wallpaper and test colors are extracted
      test in multiwindow mode
Change-Id: I18a6bb5013de4eea7e9b45810401f5b9b3cd7302
2021-04-30 15:54:17 -07:00
Sunny Goyal b745a2a9fd Fixing transition end not getting called if pagedView is not drawing
Bug: 186822776
Test: Manual
Change-Id: I60e9028d17f39a4ad95f9aa79f8b4be695b4ae65
2021-04-30 13:38:59 -07:00
TreeHugger Robot 51991a7333 Merge "Fix few A11y/ UI bugs for widget pickers" into sc-dev 2021-04-30 19:09:53 +00:00
TreeHugger Robot f9f506ca7e Merge "Update drop target styling based for BC." into sc-dev 2021-04-30 16:46:53 +00:00
TreeHugger Robot ed40c7735e Merge "Correct "cropping" of widget picker's search bar" into sc-dev 2021-04-30 15:00:32 +00:00
Pierre Barbier de Reuille 0e092292fb Correct "cropping" of widget picker's search bar
To corrent, I added 1dp of bottom margin. Not doing this, the framework
ignores the dropped shadow due to the elevation when some text is
entered in the box, leading to the observed cropping.

Fix: 186722040
Test: Manually
Change-Id: I746a8f014197552416ed9c40e9736baf22794c5f
2021-04-30 14:30:37 +01:00
Alina Zaidi c16c281305 Fix few A11y/ UI bugs for widget pickers
- Add a subtext in pin widget dialog informing users how to add widget
manually. This is not important for accessibility, as drag and drop is through an
action item for visually impaired users.
- Update search bar text hint color so that it passes accessibility test.

Bug: 182994384
Bug: 182993604
Test: Manually Tested using accessibility scanner app and talkback
Change-Id: I5a49d0bc3e5973b76c41b2a178af509e96a3cdd7
2021-04-30 13:30:03 +01:00
Alina Zaidi b42513fbc5 Merge "Fix some bugs in widget pickers." into sc-dev 2021-04-30 09:19:07 +00:00
Alina Zaidi 2b5124ec41 Fix some bugs in widget pickers.
- Update color of Educational tip view contents. Background colorAccentSecondary
in NexusLauncher above S, colorAccent otherwise (b/185834169)
- Update widget picker search bar color and its text font and color. (b/186423026)
- Update button padding and text in pin widget picker. (b/182994384, b/183601584)

Bug: 185834169
Bug: 186423026
Bug: 182994384
Bug: 183601584
Test: Manually tested
Change-Id: I36cd3ed2285677d0c164db8f57f6c90a5f247982
2021-04-30 07:52:23 +01:00
Treehugger Robot a74390020d Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: de6e32489a am: be0414dae4 am: 40a03a5f78
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1691588

Change-Id: If0cdd0543f7c07225bba354b47ccb14fd53d05d9
2021-04-30 04:24:59 +00:00
Treehugger Robot 40a03a5f78 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: de6e32489a am: be0414dae4
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1691588

Change-Id: I59dc8c3aeedef77023a1a69d80bea87ec6d590c9
2021-04-30 03:32:49 +00:00
Treehugger Robot be0414dae4 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: de6e32489a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1691588

Change-Id: I78e87ea29397db108c5d9eba675fba243d5dbeb1
2021-04-30 03:04:29 +00:00
Treehugger Robot de6e32489a Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" 2021-04-30 02:33:36 +00:00
Bill Yi 5ed594fde0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-30 01:25:44 +00:00
TreeHugger Robot 8a50f93f91 Merge "Fade overview actions on transition to Home." into sc-dev 2021-04-30 01:05:13 +00:00
Bob Badour 382a0b6c50 [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3
Added SPDX-license-identifier-Apache-2.0 to:
  tests/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Id17ab22cf50eabf01ead54016aab0da1c4451d3f
2021-04-29 17:50:38 -07:00
TreeHugger Robot b9f8152aa1 Merge "Check screen context permissions for NIU Actions" into sc-dev 2021-04-30 00:48:54 +00:00
TreeHugger Robot 3395d1de7a Merge "Arrow popup - adjust margin to account for RTL and LTR." into sc-dev 2021-04-30 00:05:27 +00:00
Zak Cohen cf38c65dc4 Fade overview actions on transition to Home.
Bug: 184696445
Fixes: 184696445
Test: Local build and flash
Change-Id: I950a08b1528ba983157615f99c21f06de220d414
2021-04-29 16:17:10 -07:00
Zak Cohen 284b6ed6a7 Arrow popup - adjust margin to account for RTL and LTR.
Bug: 185887218
Test: Local in ltr and rtl
Change-Id: I50d1e9dbc64dc02f31661d91a6c9a90e4383c5c7
2021-04-29 15:34:29 -07:00
TreeHugger Robot 44e6fb6ed4 Merge "Calling pageTransisionEnd only after edgeEffect finishes" into sc-dev 2021-04-29 22:15:41 +00:00
TreeHugger Robot 14e2070709 Merge "Replace conversations widget app icon" into sc-dev 2021-04-29 22:15:21 +00:00
Bob Badour 23677e7af2 [automerger skipped] [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3 am: 290679571e -s ours
am skip reason: Merged-In I069f0fcd0652dcfd3e9c539e1f9bcb4c9225a10b with SHA-1 fc90688b43 is already in history

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

Change-Id: Ia8131b5438b0f77c80fcdefdfefbd1b327655257
2021-04-29 21:11:40 +00:00
TreeHugger Robot 2aec5f2643 Merge "Fix a couple issues with tracking launch cookies" into sc-dev 2021-04-29 21:04:25 +00:00
Sunny Goyal 05b59c080f Calling pageTransisionEnd only after edgeEffect finishes
Bug: 186605795
Test: Presubmit
Change-Id: I2b46d0b0a47c68038f300e71ab89bd7e5a5e3895
2021-04-29 13:56:08 -07:00
TreeHugger Robot ae95cd1cc1 Merge "Logging ItemInfo.attribute field for LauncherUiChanged atom." into sc-dev 2021-04-29 20:33:22 +00:00
TreeHugger Robot f046fdd21d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-29 20:15:48 +00:00
Bill Yi a7e17232a0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9097c2e5797ad0b1b256e3e731dc0aa917aa4513
2021-04-29 19:00:55 +00:00
Bill Yi fdcf8103e0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide1f0bfcb4a3a28bcdbc2d0ec830f77de864546f
2021-04-29 19:00:17 +00:00
Bob Badour 290679571e [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3
Added SPDX-license-identifier-Apache-2.0 to:
  Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I68b3eb245ece3476ed1e5a6e08537efb438e5641
Merged-in: Ib2fe11ca0c8937b49323dfb4759a0a8770a5cfa6
Merged-in: I069f0fcd0652dcfd3e9c539e1f9bcb4c9225a10b
2021-04-29 17:20:00 +00:00
Steven Ng 1140f84b6f Replace conversations widget app icon
Test: Open full widgets picker and observe the expected icon for
      the conversations category.
Bug: 184878454
Change-Id: I580b0148d39c8dd004113c8f966135b22165a329
2021-04-29 17:46:29 +01:00
Steven Ng 99d4010c6e Merge "Use widget picker color surface for WidgetsBottomSheet" into sc-dev 2021-04-29 13:51:51 +00:00
Steven Ng 1777a1be4f Use widget picker color surface for WidgetsBottomSheet
Test: Launch widgets bottom sheet, search popup to confirm the expected
      background color is applied.
Bug: 183601302
Change-Id: I300a364605e00a0d8046a907a40f4cb797ec161e
2021-04-29 12:44:31 +01:00
Yogisha Dixit a3a6f51b12 Update drop target styling based for BC.
Spec: https://docs.google.com/presentation/d/1UxdDh8EFhPbdRWRwzjbpgL-j02ew4Ew3eG3XBCeoYdo/edit#slide=id.vXfwHn8

Demo: https://drive.google.com/file/d/1ZIa3Dgo85vdVkfPm7aGJDyctZQR_c8Xx/view?usp=sharing

Test: manual
Bug: 184713740
Change-Id: I17dbbf1f7bbc40939cfc0fedb506a35f39ecc2e3
2021-04-29 09:18:05 +00:00
TreeHugger Robot e1a2ea769f Merge "Remove debugging logs from the full widgets picker" into sc-dev 2021-04-29 08:33:36 +00:00
Winson Chung 3c192b3f72 Fix a couple issues with tracking launch cookies
- Fix NPE when there is no running task
- Fix issue where we were defaulting to a prediction icon when
  there was no launch cookie
- Don't use a launch cookie when we are launching from a non-workspace
  item, just fallback to the package name matching in that case

Fixes: 186653036
Fixes: 186593373
Test: Swipe up from various apps launched from predictions, also
      launch an app from all apps and swipe up and ensure it
      doesn't match a prediction
Change-Id: Ie8f5da010c140a5056045ac268d082c80271ab68
2021-04-29 04:23:40 +00:00
Jon Spivack c5919749ea Check screen context permissions for NIU Actions
This checks for the ASSIST_STRUCTURE_ENABLED and ASSIST_SCREENSHOT_ENABLED permissions before sending NIU Actions Intents. If either permission is absent, the screenshot is not sent, and an error code is added to the Intent.

Bug: 182010359
Test: Manual (toggled permissions and clicked NIU Actions buttons on Wembley device)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: Icf0db739f5010862cc2bac496f5410665625f3be
2021-04-28 18:26:13 -07:00
thiruram 7350b0f47e Logging ItemInfo.attribute field for LauncherUiChanged atom.
Unlike LaucherStaticLayout, LauncherUiChanged atom does not have origin field to write into statsd. This workaround solution will pack attribute value into target_id field and provides backward compatibility too.

Bug: 186169419
Test: Manual
Change-Id: Ib5344fad08accdd0aac827700c3842b7f102b7dc
2021-04-28 17:35:20 -07:00
TreeHugger Robot 5354abb0e7 Merge "[Overview Sharing] Turn on the feature flag for overview sharing." into sc-dev 2021-04-29 00:20:47 +00:00
Shan Huang 64fc7543f0 Merge "Updated launcher text shadow values." into sc-dev 2021-04-29 00:16:47 +00:00
Becky Qiu a6cec336ff [Overview Sharing] Turn on the feature flag for overview sharing.
Bug: 186670923
Test: manual
Change-Id: I57514cde11dc3315c8671c286a6963d29cf346e1
2021-04-28 15:20:49 -07:00
TreeHugger Robot 127714094a Merge "Change TaskIconMenu to lay out vertically" into sc-dev 2021-04-28 20:16:43 +00:00
Vinit Nayak 4cc0dbb552 Change TaskIconMenu to lay out vertically
Still lays out horizontally when in phone
landscape.
TODO(b/186583656), need to center view.
Also have all layout be dynamic instead of having
some cases be in XML and some in code.

Bug: 181704764
Test: Task menu visible with all options in
portrait/landscape tablet
portrait phone
fake/real landscape phone

Change-Id: I3632eeb174f3e4baf2c9d69d51c1815c3c512e59
2021-04-28 11:47:08 -07:00
Steven Ng 3417c1d22b Remove debugging logs from the full widgets picker
Test: None
Bug: 185508758
Change-Id: I2958118abc9d4f3778aaf6c3e3df01b0712354dc
2021-04-28 19:27:40 +01:00
TreeHugger Robot 04a194fca0 Merge "[AA+] Add SearchResult type to ItemInfo attributes." into sc-dev 2021-04-28 18:16:54 +00:00
Winson Chung 4dd75b334f Merge "Prevent multiple calls to finish on the recents controller" into sc-dev 2021-04-28 17:22:19 +00:00
Winson Chung bfb6274920 Merge "Invalidate when switching to new consumer" into sc-dev 2021-04-28 17:01:02 +00:00