Commit Graph

559 Commits

Author SHA1 Message Date
Rajeev Kumar 85e89fceab Merge "NIU Actions: Support Dark Mode and Landscape" into sc-dev am: f6e138cf21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14753495

Change-Id: I09352c85b20cdad4b715ba58e7bb783bcf3d3be7
2021-06-01 19:48:27 +00:00
Rajeev Kumar 6a4f517315 Merge "NIU Actions: Support Dark Mode and Landscape" into sc-dev am: f6e138cf21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14753495

Change-Id: Ib73d27c843577c4744f8693319f6fa938a02ada6
2021-06-01 19:48:16 +00: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 3c15800e1d Merge "NIU Actions: Do not send image URI when sending error code" into sc-dev am: 55cca920e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14752490

Change-Id: Ibee8a9dc6413b76c84a1acd0128201ef4d531c7a
2021-05-28 16:32:20 +00:00
Jon Spivack 609970d467 Merge "NIU Actions: Do not send image URI when sending error code" into sc-dev am: 55cca920e0 am: d01f9d4817 am: 697c5190a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14752490

Change-Id: I7678ffed64cada4a40d718f2c1e5e99abfd91494
2021-05-28 04:07:55 +00:00
Jon Spivack d01f9d4817 Merge "NIU Actions: Do not send image URI when sending error code" into sc-dev am: 55cca920e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14752490

Change-Id: Ia2dfb89221febe58a8890569a373a6cf1adec444
2021-05-28 03:05:01 +00:00
Jon Spivack 55cca920e0 Merge "NIU Actions: Do not send image URI when sending error code" into sc-dev 2021-05-28 01:14:21 +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
Jon Spivack 6eb0186616 NIU Actions: Do not send image URI when sending error code
In the case of a permissions denial, we do not send a screenshot in the NIU Actions Intent. Previously, we sent a fake URI to fit with existing recipient Intent filters, but the recipients have been updated to no longer require this.

Bug: 186780965
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I7cf92a03946e1663150f963fcea7f6b92833da68
2021-05-27 14:39:16 -07:00
Bill Yi d9217b1eb8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2dd26d4f0076d933151923ca9ece40baa855385b
2021-05-25 22:40:09 +00: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
Jon Spivack fed2572bd4 Merge "Disable NIU Actions on Work Profile apps" into sc-dev am: fea72152fd am: 0ec4a5af69 am: f6068a0949
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14610102

Change-Id: Iaabb1245ea0a98be3a7ad3d094b0c6f8bd9c6b2e
2021-05-20 22:10:27 +00:00
Jon Spivack f6068a0949 Merge "Disable NIU Actions on Work Profile apps" into sc-dev am: fea72152fd am: 0ec4a5af69
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14610102

Change-Id: I81c327dad116fb94fb4010896f6f0fbbd0ee39e4
2021-05-20 21:52:50 +00:00
Jon Spivack bc7589ed7a Merge "Disable NIU Actions on Work Profile apps" into sc-dev am: fea72152fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14610102

Change-Id: I0c0132599ad4a26dc2053c29aa49275dc9025bb3
2021-05-20 21:38:31 +00:00
Jon Spivack 1dc5c439f1 Merge "Disable NIU Actions on Work Profile apps" into sc-dev am: fea72152fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14610102

Change-Id: Ibaf041bad8c6ef553d0f3aca9436137d3a232a8a
2021-05-20 21:38:19 +00:00
Jon Spivack fea72152fd Merge "Disable NIU Actions on Work Profile apps" into sc-dev 2021-05-20 21:16:22 +00:00
Jon Spivack f344e016b8 Merge "NIU Actions and Recents UI updates on Go" into sc-dev am: a44bb71d95 am: 640e9a58ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14557516

Change-Id: I7b4b5f4b1fb3bbce38ed9c8fff15853c734d4746
2021-05-20 04:39:52 +00:00
Jon Spivack cdbaea4486 Disable NIU Actions on Work Profile apps
If the currently selected Recent app belongs to a Work Profile, do not allow the user to invoke any of the overview actions. Instead, show the standard blocked by policy message (R.string.blocked_by_policy).

Bug: 187491010
Test: Manual (Pixel 3A)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I552da9512ab19993eb4bb65fe9269d2aee9f0c4e
2021-05-19 14:58:27 -07:00
TreeHugger Robot 30df7e2205 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-19 02:43:31 +00:00
Bill Yi d6ea39c859 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I86e66bd20a2e54469971095f755444c79a0da461
2021-05-18 23:13:26 +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 640e9a58ff Merge "NIU Actions and Recents UI updates on Go" into sc-dev am: a44bb71d95
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14557516

Change-Id: I2aa86efcfb1b04987008cd9837ba889adad5c008
2021-05-18 18:23:07 +00:00
Jon Spivack 54053503ff Merge "NIU Actions and Recents UI updates on Go" into sc-dev am: a44bb71d95
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14557516

Change-Id: Id5b9a49440b942e51af32e3f1409245c0e9ca48b
2021-05-18 18:22:04 +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 d1f39ec833 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I68b6b6065d662d47df87f5c157a37d43171b0c45
2021-05-13 07:41:06 +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
Rajeev Kumar 4afd13866c Merge "Default screen context permissions for NIU Actions" into sc-dev am: c31a3da25c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14510900

Change-Id: I0a553048732d62689c48abdb79f9588133bc8c0f
2021-05-12 17:21:06 +00:00
Rajeev Kumar d9d988da8c Merge "Default screen context permissions for NIU Actions" into sc-dev am: c31a3da25c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14510900

Change-Id: I86048ed993f1bb34e527f6ef7bfcaf257f617bb7
2021-05-12 17:06:06 +00:00
Jon Spivack 9e0189bac6 Default screen context permissions for NIU Actions
This updates the checks for ASSIST_STRUCTURE_ENABLED and ASSIST_SCREENSHOT_ENABLED to return 1 if the settings do not exist. This matches the logic in the Settings app iself, which has the toggle boxes on by default but does not actually initialize those values until they are toggled for the first time.

Bug: 187868947
Test: Manual (tested on Pixel 3A)
Change-Id: I4ef067dcf21b40eea71199e057d7a00d1d8fb2b3
2021-05-11 19:02:58 -07:00
Jon Spivack 392f34c000 Merge "Rework NIU Actions buttons UI" into sc-dev am: 4ff2f7697c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14491469

Change-Id: I79d0c4cf13a077c2faf5bf3993e1230f270879e2
2021-05-11 22:41:23 +00:00
Jon Spivack 84e557f652 Merge "Rework NIU Actions buttons UI" into sc-dev am: 4ff2f7697c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14491469

Change-Id: I864e80b66e4704326aa651e7feecde73b3130290
2021-05-11 22:41:10 +00:00
Jon Spivack 4ff2f7697c Merge "Rework NIU Actions buttons UI" into sc-dev 2021-05-11 22:29:12 +00:00
TreeHugger Robot f0b07f7164 Merge "Handle config changes in Launcher" into sc-dev am: 95ff5cf63e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14234761

Change-Id: I0d2a436b70d120fac658a331682f8630b4145806
2021-05-11 15:43:50 +00:00
TreeHugger Robot b8991cc1fc Merge "Handle config changes in Launcher" into sc-dev am: 95ff5cf63e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14234761

Change-Id: Ic71f8c2c6f595ae6c968466b19228f6506f132f1
2021-05-11 11:17:58 +00:00
TreeHugger Robot 95ff5cf63e Merge "Handle config changes in Launcher" into sc-dev 2021-05-11 10:58:48 +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
Alex Chau a02eddc144 Handle config changes in Launcher
- This is practically a revert to http://ag/c/13687966/5 and refactored to use DisplayController.DisplayInfoChangeListener
- Make Launcher handle size and density change so transition is less janky when screen size changes
- Added fix in RecentsView to update state and TaskView when display profile changes
- Removed 720dp specific resoureces
- Removed unused widget_section_indent
- Removed unnecessary all_apps_background_canvas 600dp override that is not needed in AllApps+
- Moved remaining dp specific into DeviceProfile
- Simplified allowRotation logic to use single variable in DeviceProfile to determine if allow rotation is enabled by default

Fixes: 180803696
Test: manual
Change-Id: Iea0a7d1a0e14dc3613152dd3b3887450a2e1fc2f
2021-05-10 18:50:02 +01: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 bdf64e79bd Add app package names to NIU Actions Intents
This adds the package name of the currently suspended app to the NIU Actions Intents, for logging purposes.

Bug: 186388671
Test: Manual (printed out the Intent extras while trying various apps)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I8180347675c8940c960e4aa4c47dec508207c780
2021-04-30 17:37:16 -07: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
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
Alex Chau dfde4d96ea Focus running task in overview grid
- calculateTaskSize now returns the Rect for focused task
- Introduced calculateGridTaskSize for non-focused task, and translate non-focused tasks to fit the grid
- As Task Rect is now vertically centered, removed ClearAllButton's grid vertical translation
- When ClearAllButton is not shown (e.g. quickswitch), make sure ClearAllButton's scroll won't be used when page snapping. This happens when page scrolls are translated so they're negative.
- Added back ActionsView when task is focused below the TaskView, which become invisible as you scroll
- In Modal state, move the ActionsView down so it won't cover the TaskView

Bug: 175939487
Test: manual
Change-Id: Idfa94a51f856418adc0503cf04211dcb4b1814fe
2021-04-01 14:52:25 +01:00
Zak Cohen 733efa1bcd Overview - extract AssistContentRequester logic for reuse.
Extract the logic for fetching AssistContent into a common reusable place.

Bug: 179705864
Test: Local build of main launcher
Change-Id: Ife37a393d93f899fa1ae460bdcf0cadff6468b04
2021-03-27 14:53:34 -07:00
Rajeev Kumar f23ea3b067 Merge "Add OWNERS to Launcher3/go" am: 278edf2938 am: dc71c0178a am: ee9a99a6a8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1653167

Change-Id: I227d47f2ba807e4b5de60fba8dbad60f279bdba4
2021-03-25 16:30:13 +00:00
Rajeev Kumar 278edf2938 Merge "Add OWNERS to Launcher3/go" 2021-03-25 14:50:06 +00:00