Commit Graph

82 Commits

Author SHA1 Message Date
Bill Yi
6a45080d54 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifa02e310b641212721f7a8366f7f6524f7345881
2021-09-18 14:10:12 +00:00
Bill Yi
d0ea9dde60 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6866292b2d0d7330e964c1a03fa30cb95a39dbaa
2021-08-27 05:40:01 +00:00
Jon Spivack
aa10ba9d0b NIU Actions: Change AppTheme to LauncherTheme am: d317f17273
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15413718

Change-Id: I4b9f0acb7338b56f1683180b4d068239d30398be
2021-07-29 19:49:39 +00:00
Jon Spivack
d317f17273 NIU Actions: Change AppTheme to LauncherTheme
Some theme attributes used for the NIU Actions Overview were originally defined in a theme that inherited from LauncherTheme. However, 3rd-party Launchers that also used themes derived from LauncherTheme were unable to access these attributes, leading to crashes when they tried to open the Recents screen on Go devices. Just adding the attributes to LauncherTheme solves this issue.

Bug: 194810415
Test: Manual (tried a couple 3rd-party launchers on Wembley)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I7a2541f2a2ab3b39e0c6cf2fe40a4b096047df70
2021-07-28 19:14:03 -07:00
Alex Chau
5fd9d491b0 Tune Overview size according to VisD
- Removed modalTransformY as overview actions no longer need to move in modal view
- Moved row spacing and page spacing to DeviceProfile
- Added several tablet / orientation specific DeviceProfile params

Bug: 194194694
Test: Manual
Change-Id: Id5435e7f6fc1b6fb7c0e55e55fa240cf84c4d6da
2021-07-26 12:01:30 +01:00
Bill Yi
1887547d15 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I01030286c173a856dc1417a2ce1b5df9d05c5865
2021-07-16 02:53:47 +00:00
Bill Yi
f2b0e01dd8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1cb8955229751514f4577ba5d37f8ad1d0ab56c5
2021-07-14 21:40:52 +00:00
TreeHugger Robot
e42d392d55 Merge "NIU Actions: Hide button captions when feature is disabled" into sc-dev am: 2d12f20516
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15276138

Change-Id: I605117ff22f5d7fe596eea00f9396e686052e07c
2021-07-14 04:23:38 +00:00
TreeHugger Robot
2d12f20516 Merge "NIU Actions: Hide button captions when feature is disabled" into sc-dev 2021-07-14 04:10:46 +00:00
Jon Spivack
de28038e64 NIU Actions: Hide button captions when feature is disabled
Previously, only the buttons themselves were hidden when the feature was flagged off at build time. This adds the rest of the relevant layout UI (captions, spaces) to that logic.

Bug: 192692326
Test: Manual (Pixel 3A, enable_niu_actions on and off)
Change-Id: Ic58d9891887e3e0eb10d38af80b73f04cf66ea79
2021-07-13 18:56:45 -07:00
Bill Yi
2ad8a31402 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4b7ebce75701bfc23b7c65ed6d03eed16c94f26d
2021-07-13 07:23:22 +00:00
TreeHugger Robot
ccd3026485 Merge "NIU Actions: Add assistant error dialogs" into sc-dev 2021-07-13 01:05:03 +00:00
Jon Spivack
8bf8ba735a NIU Actions: Add assistant error dialogs
The NIU Actions buttons send intents to the user's default assistant. If the user clicks one of the buttons without an appropriate default assistant set, a dialog will appear to explain the situation and redirect the user to Settings.

The existing privacy confirmation dialog code has been refactored into a reusable dialog, which is used here.

Bug: 192505939
Test: Manual on local Pixel 3A (unit tests to be added in b/192406446)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I7b43e008aa74805b166c09936fa938a5834c8460
2021-07-12 16:23:46 -07:00
Bill Yi
47288bfe0d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iffe4974f900e1fe5c7062f5ecb0ad3e322286cfa
2021-07-11 20:40:07 +00:00
Bill Yi
8766f649c7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic76c41ac95bc3b018c732775aad6355466292f6e
2021-07-10 23:40:55 +00:00
Bill Yi
25acfb5667 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I94fb2323a7f88c1416ee2243ca6ea8b5ce521c86
2021-07-10 00:38:41 +00:00
Bill Yi
bd372ae84b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9905f7a629d628d392a1a59d74cbf65baf401b58
2021-07-09 06:01:24 +00:00
Bill Yi
3b8d6cfda2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I549f22555e9238bd4b47112e6076a1cba6e67a9a
2021-07-08 15:14:54 +00:00
kumarashishg
88be649d21 NIU Actions: Add NIU Actions tooltip
These tooltips are added to educate the user about NIU buttons actions. We have added tooltips for Translate and Listen NIU actions buttons.

Bug: 186006700
Test: Manual
Change-Id: Ib076c2a44055b62f2daf06bddf45aca220a28756
2021-07-08 00:48:22 +00:00
Jon Spivack
b598e968e2 Merge "NIU Actions: Add strings for assistant error dialogs and feature tooltip" into sc-dev 2021-07-08 00:39:08 +00:00
Jon Spivack
9be8d842bd NIU Actions: Add strings for assistant error dialogs and feature tooltip
The assistant error strings will be used in dialogs that appear when the user clicks the NIU Actions buttons without an appropriate default assistant set on the device. The tooltips will appear to highlight and explain the feature for first-time users. Adding the strings before the dialogs themselves in order to unblock translation efforts.

Bug: 192505939
Bug: 186006700
Test: Manual (code builds, existing strings unchanged on device)
Change-Id: I2c37b5871545e99a6bba8d060c927cbd29ef5081
2021-07-07 22:48:22 +00:00
Bill Yi
7f8a8f6ecd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9769b39a02aa7e2c5546b2dbf4cf6e35c13f8fb4
2021-07-07 16:30:28 +00:00
Bill Yi
abfad49508 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie0220ac1df352c3ae125d061ec8049e12478f091
2021-07-04 19:07:06 +00:00
Bill Yi
c99f040c03 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6adbd14a157d4bdd47aaf8fe8ca998da365802ad
2021-07-03 03:14:42 +00:00
Jon Spivack
58905b4f0a NIU Actions: Add privacy confirmation dialog
This adds a dialog to inform the user that the NIU Actions buttons need to send data to Google in order to function. The user can accept or reject this. The dialog will block use of the feature until the user accepts.

Bug: 191818216
Test: Manual (Pixel 3A with multiple user profiles)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: Iedd056ce239de5269d02a31d28a9778efae34ede
2021-06-29 18:29:22 -07:00
Bill Yi
ce114e05f3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib7e8679556fb83c611f7fccbf7bf2d7664cd9621
2021-06-24 19:50:04 +00:00
Jon Spivack
2a2eee1949 NIU Actions: Update background and dark mode colors
This updates the Recents screen to use the default background colors and updates the NIU Actions buttons to better contrast with the background in dark mode.

Bug: 191049004
Test: Manual (Pixel 3A)
Change-Id: I8aef9968623be373fb71a729a0b99a7b9899cff1
2021-06-21 15:54:05 -07:00
Jon Spivack
77edb686d7 Send NIU Actions Intents to default Assistant
This changes the recipient for NIU Actions from a package hard-coded in a config file to the currently selected default Assistant. The user can change this under Settings -> Default apps.

ImageActionUtils has also been updated to handle the case where its
Intents cannot be resolved, preventing a crash if the user sets the
default Assistant to something that cannot receive NIU Actions.

Bug: 186655099
Test: Manual (Pixel 3A, set default Assistant to Google Go and None)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I03b93597092575902d507615f32b63f4050c4c69
2021-06-11 13:58:57 -07:00
Rajeev Kumar
f6e138cf21 Merge "NIU Actions: Support Dark Mode and Landscape" into sc-dev 2021-06-01 17:43:43 +00:00
Jon Spivack
1e1f85beff NIU Actions: Support Dark Mode and Landscape
This adds light and dark color variants for the UI elements on the Go Recents screen. Toggling Dark Mode will switch between the themes. Additionally, the button spacing definitions have been updated to better support Landscape orientation.

Bug: 187866121
Bug: 183714277
Test: Manual (Pixel 3A)
Change-Id: Ia2c0cbf372882aad87e4018d10d8f85bd92842e0
2021-05-27 16:23:51 -07:00
Bill Yi
1276d7b8d7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I49ec409fe6df98ada02d378db1f652f5a7e0b278
2021-05-25 22:37:31 +00:00
TreeHugger Robot
30df7e2205 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-19 02:43:31 +00:00
Bill Yi
0a044199ec Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I638f862f37915af69371535dd0792ae5d59c2c3b
2021-05-18 23:10:48 +00:00
Jon Spivack
a44bb71d95 Merge "NIU Actions and Recents UI updates on Go" into sc-dev 2021-05-18 18:05:19 +00:00
Jon Spivack
f90db8a8eb NIU Actions and Recents UI updates on Go
This tweaks the layout and fonts in the Go Overview. It also adds rounded corners to the task snapshots in the Recents view on Go by adding an overrideable value to the base Quickstep Launcher.

Bug: 186004471
Test: Manual (Pixel 3A)
Change-Id: I220836a95a6416b85bdb71d88822d25d939cf205
2021-05-17 11:57:01 -07:00
Bill Yi
8132baf3de Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I71372d68317892f9044ff5c8f9397f8f6fd70e71
2021-05-17 10:50:49 +00:00
Bill Yi
6b2be3789c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia6bc84a966d24fa30a9a5d812c76bd18066acf31
2021-05-13 07:39:28 +00:00
Jon Spivack
4ff2f7697c Merge "Rework NIU Actions buttons UI" into sc-dev 2021-05-11 22:29:12 +00:00
Bill Yi
c28b75b8eb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I384f2a0b04475aed1587f685e6046b14ffaa9240
2021-05-11 04:19:24 +00:00
Jon Spivack
6a7094d43a Rework NIU Actions buttons UI
The shapes, colors, icons, and layout of the NIU Actions buttons have been updated to match the latest UI specs. The icons also no longer overlap with the layout above them, which solves a picking issue.

Bug: 186004471
Bug: 187460625
Test: Manual (tried on Wembley and Pixel 3A)
Change-Id: Ie7a0ca0c21805fc0f126053ec791fd2460710d33
2021-05-10 18:22:52 -07:00
Bill Yi
14980fe0dd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I67cae1b3cc2fd0e16750dd31f762b9d480792595
2021-05-09 10:50:07 -07:00
Bill Yi
2ca3f98921 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I432d4ee0276275401879ce050f9600e2319ef883
2021-05-07 14:43:37 +00:00
Jon Spivack
23a76dae18 Go Launcher: Update Overview Actions buttons
This updates the layout of the overview buttons to better match more recent UX mocks. It also restores the buttons' captions, which had gone missing.

Bug: 183448909
Test: Manual (verified on Wembley and Sargo)
Change-Id: I931df92cd0d255289168694d4a950649eec7da75
2021-04-14 18:46:32 -07:00
Sunny Goyal
11d7d34f0d Removing unnessary resource split in overview
Bug: 184169818
Test: Presubmit
Change-Id: Iff5a8510be337472f05acb5629712ec088361471
2021-04-02 11:43:29 -07:00
Jon Spivack
387e65e3c4 Change label for Search button in Go Overview
The visual search button on the Recents screen (on Go devices) will be renamed to Lens.

Bug: 183618164
Test: Manual
Change-Id: I86371e604bd0204510737e5088c95404129818bb
2021-03-24 17:23:32 +00:00
Jon Spivack
f0b702f61b Enable NIU Actions on Go devices
This flips the feature flag to enable the NIU Actions buttons in the Go Launcher Recents page.

Bug: 158157668
Test: Manual (on local wembley device)
Change-Id: Ifa49cbb8840556ce53a09f00e36b0f6a12eb8d60
2021-03-19 14:38:22 -07:00
Jon Spivack
3a1cfc9082 Add NIU Actions buttons to the Go Overview
The buttons send Intents to the designated app (specified by
niu_actions_package) to do the following:
Listen - Read the contents of the screen aloud
Translate - Translate the contents of the screen
Search - Perform a visual search on the contents of the screen

The Intents also include (via URI) the screenshot of current app used as
a thumbnail by Recents.

The feature is controlled by the enable_niu_actions flag, set to false
here. Both this flag and the niu_actions_package String must be set for
a given Launcher to use these buttons.

Bug: 177955244
Bug: 177955748
Test: Manual (enabled on LauncherGoGoogle and sent Intents to demo Lens
app)

Change-Id: I3d1f870bb176ed0cbae637a45c072bd8acac1d4b
2021-02-09 14:50:56 -08:00
Jon Spivack
a89a5084f2 Add the Share App system shortcut to the Go Launcher
This shortcut allows users to initiate peer-to-peer app sharing from an app's long-press menu on the home screen. It does so by passing an intent to the specified component. In this base implementation, that specification in config.xml is left blank, and the button will not appear. In GMS Launchers such as LauncherGoGoogle, the config should be set to point to Nearby Sharing.

This also establishes Launcher3QuickStepGo as a distinct subclass of QuickstepLauncher instead of merely a build configuration.

Bug: 157515296
Bug: 174286192
Test: Manual (tested on local wembley devices)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I826bd03721d2e7e963b15d5958e9a18a1cc16f1d
2020-11-30 18:53:56 -08:00
Peter Kalauskas
0842cf5f9d Remove Launcher3GoIconRecents
Bug: 144129431
Test: Build and check that Launcher3QuickStepGo is used instead
Change-Id: Ib2a30c9e1e78de7792f34c3505372c8af1cb307d
2019-12-11 12:18:52 -08:00
Pinyao Ting
2cf2871392 include predicted_rank in app launch logging
Test:
1. . build/envsetup.sh && tapas NexusLauncher
2. ccdebug && cclogcat
3. launch from workspace any app that is also in predicted apps
4. verify in terminal it has correct predicted_rank

Bug: 143855018
Change-Id: I07a62f07057537a6c09384cf944bbc5aa5888d22
2019-11-12 16:40:34 -08:00