Commit Graph

438 Commits

Author SHA1 Message Date
Jon Spivack e0feb07e72 NIU Actions: Change AppTheme to LauncherTheme am: d317f17273
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15413718

Change-Id: I5a23028b4d752b1265b29711bc2abb662717baf9
2021-07-29 19:48:51 +00:00
Jon Spivack c531784780 NIU Actions: Change AppTheme to LauncherTheme am: d317f17273
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15413718

Change-Id: I64df60ac572d5bb61468ea032e0be7ddc014a87d
2021-07-29 19:48:46 +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
kumarashishg 8185dedf56 NIU Tooltip : tooltip overlap issue fix
Overlay is getting updated multiple times, So If a tooltip is getting
shown then next overlay update call will trigger new tooltip regardless of current tooltip behavior.

If a tooltip is getting shown then other tooltips should not be triggered. Added a check for this.

Bug: 194458724
Test: Local build and run on Pixel 4a
Change-Id: I5266ddd7cfa84258b46dc14846d77872752ac442
(cherry picked from commit ced47f4ae652987f746daeec2367d184b1d63937)
2021-07-28 17:53:50 +00:00
Alex Chau a8049d069d Merge "Tune Overview size according to VisD" into sc-v2-dev am: 8e83f31100 am: 8b11c3b574
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15371943

Change-Id: Iac132e9b061b747425f69cefcfd54415704e6694
2021-07-28 11:05:27 +00:00
Alex Chau 8b11c3b574 Merge "Tune Overview size according to VisD" into sc-v2-dev am: 8e83f31100
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15371943

Change-Id: I742f4474937a14976b6ce941b139a158b9fda53c
2021-07-28 10:56:18 +00: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 1ad3b5c6f4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ied133a73ab5e7f903609b2e508dc6bd026b15f9b
2021-07-16 02:56:04 +00: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 56f663695b Merge "NIU Actions: Hide button captions when feature is disabled" into sc-dev am: 2d12f20516 am: dbfbe2c64b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15276138

Change-Id: I7bb41dfdd5eca3e6a205c0ea6b15e1a3d1b7eb01
2021-07-14 04:32:23 +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 dbfbe2c64b 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: Ib7f64c660a5bf281c228b4bf4d5ed74f694545a7
2021-07-14 04:22:58 +00:00
TreeHugger Robot a969fa24fd 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: I6d1be4b2b24c5cb740aabb20b3bad54df2ae7880
2021-07-14 04:21:59 +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 248b2ee803 Merge "NIU Actions: Add assistant error dialogs" into sc-dev am: ccd3026485 am: 81b20765b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15246681

Change-Id: Ib279ccd106e918bae3fcea2c7587175fef0ca400
2021-07-13 01:34:06 +00:00
TreeHugger Robot 81b20765b7 Merge "NIU Actions: Add assistant error dialogs" into sc-dev am: ccd3026485
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15246681

Change-Id: I579b9de68a1e7c94f91df6a8d9627809a8b12a67
2021-07-13 01:20:16 +00:00
TreeHugger Robot 90bbd554d4 Merge "NIU Actions: Add assistant error dialogs" into sc-dev am: ccd3026485
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15246681

Change-Id: Id36b82b87462decc607f3221daa5be4d23601280
2021-07-13 01:19:41 +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 b34db49a8b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2fbd0922a3ffff550e526e6515a687f41dbe1adc
2021-07-11 20:42:44 +00: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
Tracy Zhou dda5ddbcbf End live tile for overview actions in Android Go am: e23157bbb0 am: cbe71f0eff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15249978

Change-Id: Ie3e03ccf57f233a288a7b25a057e61d24b99acc5
2021-07-10 16:32:36 +00:00
Tracy Zhou cbe71f0eff End live tile for overview actions in Android Go am: e23157bbb0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15249978

Change-Id: I710a00ff8bda43467c0310f42978e4635eff6434
2021-07-10 16:24:08 +00:00
Tracy Zhou d81e77f889 End live tile for overview actions in Android Go am: e23157bbb0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15249978

Change-Id: I1cb98c8036d02d2e43cf761836c608a8d48880d7
2021-07-10 16:24:04 +00:00
Tracy Zhou e23157bbb0 End live tile for overview actions in Android Go
Fixes: 193275019
Test: N/A
Change-Id: I0c22e557face73f656273da4fec4521a9c86d606
2021-07-10 07:13:58 +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
Ashish Gupta 8511d20778 Merge "NIU Actions: Add NIU Actions tooltip" into sc-dev am: 4e74ccb082 am: d5892fe778
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15126744

Change-Id: Ie50b7e962172162cae742568de2e3ceb319b9b5b
2021-07-08 07:58:51 +00:00
Ashish Gupta 646218ebf6 Merge "NIU Actions: Add NIU Actions tooltip" into sc-dev am: 4e74ccb082
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15126744

Change-Id: I3229482f572feb6e5fbfa8fc338bad23a9525c45
2021-07-08 07:41:46 +00:00
Ashish Gupta d5892fe778 Merge "NIU Actions: Add NIU Actions tooltip" into sc-dev am: 4e74ccb082
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15126744

Change-Id: I877d9fe09a2a2d658ea38ef2191e7bb2c8b47393
2021-07-08 07:41:22 +00:00
Jon Spivack d1da1ae4b4 Merge "NIU Actions: Add strings for assistant error dialogs and feature tooltip" into sc-dev am: b598e968e2 am: c5aac8ffd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15191924

Change-Id: I050e811bb3873d236fbcea155a27b4aebba4b833
2021-07-08 01:02:46 +00:00
Jon Spivack c5aac8ffd8 Merge "NIU Actions: Add strings for assistant error dialogs and feature tooltip" into sc-dev am: b598e968e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15191924

Change-Id: I3e7ae1788bea94edbca08a259825f96b874e47b7
2021-07-08 00:49:47 +00:00
Jon Spivack c5cf6af50a Merge "NIU Actions: Add strings for assistant error dialogs and feature tooltip" into sc-dev am: b598e968e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15191924

Change-Id: Iaefc2afcb17e198ff4498241d76c6594b3eeb972
2021-07-08 00:49:03 +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 e30ceb51c3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I33c59d4011a6fb85b60166b632a4f84956acb66d
2021-07-04 19:09:41 +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 40de46d164 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I75d28d5faba5637572dd60621042f248c4584810
2021-07-03 03:17:18 +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 71fc5d17f1 Merge "NIU Actions: Add privacy confirmation dialog" into sc-dev am: 4e0bc773c8 am: 7b1ea2a163
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15098029

Change-Id: I68e55d2cba548e122e1e1e1623d2dd75a74eaf8a
2021-07-01 13:43:27 +00:00
Jon Spivack 7b1ea2a163 Merge "NIU Actions: Add privacy confirmation dialog" into sc-dev am: 4e0bc773c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15098029

Change-Id: I0d70c01f6bbb1da53f12eeb8e5636739b185dd06
2021-07-01 07:24:28 +00:00
Jon Spivack b83b605fe8 Merge "NIU Actions: Add privacy confirmation dialog" into sc-dev am: 4e0bc773c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15098029

Change-Id: Id61d6c1b34fdb9ec50c085c17cba58b4e5c62fdc
2021-06-30 19:11:29 +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