Commit Graph

32634 Commits

Author SHA1 Message Date
Alina Zaidi f2c79dea0d Add more education tips for widgets. (2/3)
Show education dialog on WidgetsFullSheet.
-Have a button in widget education dialog to intent into PixelTips apps.
-Make sure arrow tip view shows after dismissing education dialog on
WidgetsFullSheet if there is a widget to show it on.
-Update colors and layout for arrow tips.

Test: Tested manually
Bug: 185354491
Change-Id: I5cbdd02fc4f19a49a42dac4451b071e3d604747f
2021-06-01 13:58:18 +01:00
Steven Ng 7e3d96c620 Show app widget resize frame after launcher state change
When this bug occurs, the resize frame coordinate is incorrect because
the launcher state animation has not finished when the drag view
finishes animating back to its original position.

Test: Quickly long press and release a widget from the home screen.
      Observe the resize frame is correctly shown around the widget.

Bug: 186370472
Change-Id: I6bfba2e85e3354a215c26203dd22df13db3b8b83
2021-06-01 12:20:32 +01:00
Steven Ng a0d49dcfb4 Further adjust work profile tabs paddings in the widgets picker
Test: Open widgets picker and observe tabs paddings are correctly set.
Bug: 188872382
Change-Id: Ib6a735bf2b0710f86b8641533cadb27116049341
2021-06-01 11:40:36 +01:00
Steven Ng 02045feb20 Merge "Don't dismiss keyboard after clicking X button on the widgets search bar" into sc-dev am: 755723403b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14748544

Change-Id: Id13572638904399f37f24ae3ff4c6f527128d972
2021-06-01 10:32:13 +00:00
Steven Ng 755723403b Merge "Don't dismiss keyboard after clicking X button on the widgets search bar" into sc-dev 2021-06-01 10:05:26 +00:00
Bill Yi a0475f7b30 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a4adcbc8ed -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie9f447662edfaeca20fd10bd8d1e142ebb01fba0
2021-05-31 18:24:55 +00:00
Bill Yi ba1e4e7a14 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I896fae3bbf2b553b8e2bf44439f74237f074525e
2021-05-31 10:53:35 +00:00
Bill Yi a4adcbc8ed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaaa324a8b618f499da8f48f819efec176e124e85
2021-05-31 10:53:02 +00:00
Sunny Goyal 52a82bac34 Merge "Enabling themed icon feature" into sc-dev am: 8a7f973264
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738710

Change-Id: I65bbaa5b25d63dd1d0b4e1773fdb6dcd85f3b1d9
2021-05-28 19:20:29 +00:00
Sunny Goyal 8a7f973264 Merge "Enabling themed icon feature" into sc-dev 2021-05-28 18:53:40 +00:00
TreeHugger Robot af44c7f976 Merge "Force initialize task stack callback for gesture modes on init" into sc-dev am: e1a5d6bb1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14754620

Change-Id: I65d94d520827ed3a9ed586853a6b533fdbf43fd4
2021-05-28 06:00:09 +00:00
TreeHugger Robot e1a5d6bb1b Merge "Force initialize task stack callback for gesture modes on init" into sc-dev 2021-05-28 05:31:03 +00:00
Jon Miranda 5df1fa5031 Update launcher content animation to spec.
- Scales content
- Fades in scrim

Bug: 177264697
Test: manual
Change-Id: Ie60908b6c417d94f1e075ea9728bd48eea55083e
2021-05-27 22:21:30 -07:00
Jon Miranda 8fc592d246 Update device paddings to spec.
Bug: 188094809
Test: verify using device profile dump
Change-Id: I51633d590bd9079ad62a79099b3f8df1cab7894c
2021-05-27 21:04:06 -07:00
Zak Cohen 3fe81d1570 Merge "Remove overview feedback." into sc-dev am: 295ab38446
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14749512

Change-Id: I833e29f1b60916a22bfa7519c1b6c140f040bdeb
2021-05-28 02:49:30 +00:00
Zak Cohen 295ab38446 Merge "Remove overview feedback." into sc-dev 2021-05-28 02:37:45 +00:00
TreeHugger Robot 1349db5daf Merge "Adding more diags for WellbeingModel" into sc-dev am: db6b24a001
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14706421

Change-Id: Ic6b3838c60b9c4040cb3a25ec1deedaaf1acd3b2
2021-05-28 02:36:55 +00:00
TreeHugger Robot db6b24a001 Merge "Adding more diags for WellbeingModel" into sc-dev 2021-05-28 02:12:42 +00:00
Vinit Nayak 23aa129016 Force initialize task stack callback for gesture modes on init
This handles an edge case where RotationTouchHelper#mMode starts as 3 button (by default)
* then changes to gesture nav.
* then onDestroy called
* then on re-initialization mMode will be gesture nav instead of 3-button
(it maintains state because of it being singleton).

The check to register the callback won't happen because we register only if previous mode and
current mode differ.
Don't rely on default value of mMode being 3 button when initializing

Bug: 181928969
Test: Followed repo steps in bug.
Restarted phone in all 3 nav modes and verified
expected quickswitch behavior

Change-Id: I381eba7417c4cde593edf4b9a34da55b50774e98
2021-05-27 19:01:09 -07:00
Jon Miranda 2d35d4b97c Make BaseIcon.Workspace so that it can be overriden.
Bug: 188094809
Test: manual
Change-Id: Id31502e66d96806054e1cdd6549b226b2a22173e
2021-05-27 18:55:15 -07:00
Jon Spivack 7e9830c8b1 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: Id4662845c9031d2faef21d71d8770becd9a4f099
2021-05-28 01:44:32 +00:00
Jon Miranda de907805d1 Change folderFillColor to colorBackgroundFloating.
There seems to be some nuance that prevents me from defining it once in
the base theme, so just updated all of them individually to prevent
any edge case from slipping through.

Bug: 188095988
Test: manual
Change-Id: I1dea639f174fa4ec09bda93a6e2017993b2007a5
2021-05-28 01:21:21 +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
Brian Isganitis 08fdf4d269 Create settings activity layout with explicit toolbar
This layout will be overridden to have a collapsible toolbar on API 31.

Test: Settings layout unchanged
Bug: 187732263
Change-Id: I0c098dd0a09a1787a10035a3d3f35ecf461cfc20
2021-05-27 18:41:18 -04:00
Brian Isganitis a9a063294e Merge "Give each preference screen its own activity and toolbar title" into sc-dev am: 8d6ca68786
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14709732

Change-Id: I058985cbd1edbdb9cf1487eed4a51f9863cda0e7
2021-05-27 22:32:56 +00:00
TreeHugger Robot 98fc06fcc2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 30adb97c13 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icd40e6b891efdd289ff03ad280733d0abf1f62cb
2021-05-27 22:32:50 +00:00
Brian Isganitis 8d6ca68786 Merge "Give each preference screen its own activity and toolbar title" into sc-dev 2021-05-27 22:29:28 +00:00
TreeHugger Robot 30adb97c13 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-27 22:28:57 +00:00
Jon Miranda 62769f10d7 Turn off app close flag, Revert back to R implementation.
Need more time to experiment with interpolated + springs based approach,
will aim for QPR instead.

Bug: 189120868
Bug: 173107751
Test: manual
Change-Id: I5698bd61c92b4fa719d82f2553125fc7f65b5969
2021-05-27 15:14:52 -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
zakcohen cad022499c Remove overview feedback.
Bug: 189489289
Test: TAPL update
Change-Id: If531aed1b2e10de9b60f9929cbcdcb5e7ffd436b
2021-05-27 14:09:09 -07:00
Brian Isganitis 890d8d5a91 Give each preference screen its own activity and toolbar title
This change is in preparation for each preference screen having its own collapsible toolbar with its specific title.

Test: Subsettings open with activity transition and title changes
Bug: 187732263
Change-Id: Iac44d688539195ddb6c2aca0a96d737ce7727071
2021-05-27 16:08:22 -04:00
Steven Ng 7a36ad396e Don't dismiss keyboard after clicking X button on the widgets search bar
Test: Enter some queries in the widgets search bar. Click X button. The
      keyboard is still opened after the search queries has been erased.
Bug: 189454318
Change-Id: Icb0501cf36cbf1517e2da24044da44101fa86ed9
2021-05-27 18:42:31 +01:00
Pierre Barbier de Reuille 4bbd8623f9 Merge "Update the computation of the widget span from size" into sc-dev am: 0bb96c9168
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14736371

Change-Id: I88641547e683ca42b776cd300fc155e42761dddb
2021-05-27 12:32:00 +00:00
Pierre Barbier de Reuille 0bb96c9168 Merge "Update the computation of the widget span from size" into sc-dev 2021-05-27 12:11:27 +00:00
Samuel Fufa b53a58288a Merge "Remove AllApps prediction edu" into sc-dev am: bd883ea788
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682074

Change-Id: Ic51e0fecefab7e8494d012ec4b082c2212550edc
2021-05-27 11:31:02 +00:00
Samuel Fufa bd883ea788 Merge "Remove AllApps prediction edu" into sc-dev 2021-05-27 11:02:49 +00:00
Jason Chang 0a79857e1d Merge "Migrate trigger logic to fullfill new UI changes for One-handed mode settings." into sc-dev am: 9bc712f267
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14527644

Change-Id: Icf6393dd187c350aa144d421721a778f7a45bcf5
2021-05-27 06:00:07 +00:00
Jason Chang 9bc712f267 Merge "Migrate trigger logic to fullfill new UI changes for One-handed mode settings." into sc-dev 2021-05-27 05:31:13 +00:00
TreeHugger Robot 6b4fa91035 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-05-27 04:16:18 +00:00
Bill Yi 64543c0dad Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4e5ee682ed5b52d4c97164bb195934a3a03653b3
2021-05-27 02:30:30 +00:00
Bill Yi 1817a5717f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6b5cd6be5d7f2b4519dc0fa589df88ea5e6b3139
2021-05-27 02:29:56 +00:00
Josh Tsuji b7735b450e Merge "Adds launcher-side support for the SmartSpace shared element transition." into sc-dev am: bdb4ed711c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14471950

Change-Id: I4812a5728ec39d06aab9350780f86600133555fb
2021-05-27 00:49:58 +00:00
Josh Tsuji bdb4ed711c Merge "Adds launcher-side support for the SmartSpace shared element transition." into sc-dev 2021-05-27 00:29:01 +00:00
Winson Chung cfda5b44bf Merge "Add missing call to finish the home animation" into sc-dev am: 9b45bce963
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14729812

Change-Id: I3035f8f9176c97e3b28d82d25969b9ddf3d74b33
2021-05-27 00:20:11 +00:00
Winson Chung 9b45bce963 Merge "Add missing call to finish the home animation" into sc-dev 2021-05-27 00:00:34 +00:00
Winson Chung 45ecd6aa7d Add missing call to finish the home animation
- This reset the task view's show-screenshot state to show the
  snapshot the next time the task view is visible

Fixes: 186143625
Test: Enter pip w/ autoenter pip app, swipe up to overview
Change-Id: I6a1ec3d0654a33b228f97a6009145450e72e8d48
2021-05-27 00:00:24 +00:00
TreeHugger Robot 3bc3f99052 Merge "Enable unpausing apps from the workspace." into sc-dev am: a07c2efdf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14704506

Change-Id: I81fa5c0d7b9ab73d267e2e1083882854492fbaf1
2021-05-26 22:30:09 +00:00
Tony Wickham f8d731a808 Cleanup state properly when interacting during gesture nav transition
When the transition is canceled (e.g. when touching the nav bar during the transition), do the following:
- Abort the RecentsView scroll including the edge effects to ensure we get onSettledOnEndTarget() immediately.
- Jump to the current gesture end target state instead of the default rest state.

Test: Swipe up and to the left and hold to go to overview from an app, then swipe up to home during the transition; ensure that the touch down goes to overview rather than home, and subsequently that the swipe is respected and goes to home
Fixes: 189142339
Change-Id: Ie1d7dd05f45ab48968df7fdfd69fa1e1dda36d06
2021-05-26 15:28:38 -07:00