Commit Graph

6493 Commits

Author SHA1 Message Date
Bill Yi 96fd26eb8b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I13af26ac6d44151d91772479441722f1eac869bf
2021-10-01 11:41:23 +00:00
Steven Ng f6dce85efb Merge "Group weather widgets under the widget category" into sc-v2-dev am: 9114f280a2 am: bec302ab6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897183

Change-Id: I982d42b726a75e58fb2f9c2a608e7bfb4bd6874a
2021-10-01 10:44:44 +00:00
Steven Ng bec302ab6c Merge "Group weather widgets under the widget category" into sc-v2-dev am: 9114f280a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897183

Change-Id: I8b251fb6d4631d7f0f33a60e3a90e80a42ca908b
2021-10-01 10:28:10 +00:00
Steven Ng 9114f280a2 Merge "Group weather widgets under the widget category" into sc-v2-dev 2021-10-01 10:17:47 +00:00
Steven Ng 43859f10bc Group weather widgets under the widget category
Test: manual (see video in bug) and added PackageUserKeyTest
      Also tested pending conversation widget to ensure the right icon
      is shown.
Fix: 201062480
Change-Id: If23c28bd93c54fb1747648309ab3c238a1810902
2021-09-30 14:22:21 +01:00
Thales Lima d90faab655 launcher: create attrs for more horizontal margin options
According to new specs, margins are different depending on orientation
and fold/unfolded. Also change the name of the variable to
horizontalMargin, since it applies the same padding to both sides.

Bug: 191879424
Test: manual and checking paddings in HSV
Change-Id: I8990c02b928a22b9f3b0cf3cbc3abf08df4daa9d
2021-09-30 14:06:56 +01:00
Samuel Fufa 7444c5185f Merge "[Foldable] Apply max width to AllApps in unfolded state." into sc-v2-dev am: abb827b376 am: aab3edf950
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15882894

Change-Id: I3f8df26bbc49772faf8b166750fa8cc5ddbc16b5
2021-09-29 22:32:01 +00:00
Samuel Fufa aab3edf950 Merge "[Foldable] Apply max width to AllApps in unfolded state." into sc-v2-dev am: abb827b376
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15882894

Change-Id: I663deca71027dc1d558f012dfbf04e743a5719de
2021-09-29 22:21:48 +00:00
Samuel Fufa abb827b376 Merge "[Foldable] Apply max width to AllApps in unfolded state." into sc-v2-dev 2021-09-29 22:07:42 +00:00
Steven Ng f79c48c0af Merge "Add a new string for widget configuration drop target" into sc-v2-dev am: d9f0c84f27 am: c14688087c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15934342

Change-Id: I86279a7c5301d0eec222563722c4e6cfaf194a65
2021-09-29 13:36:40 +00:00
Steven Ng c14688087c Merge "Add a new string for widget configuration drop target" into sc-v2-dev am: d9f0c84f27
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15934342

Change-Id: I2e4942374a531b532ec4e10b34ee8a4b7a9b67c6
2021-09-29 13:28:11 +00:00
Steven Ng d9f0c84f27 Merge "Add a new string for widget configuration drop target" into sc-v2-dev 2021-09-29 13:13:31 +00:00
Steven Ng 29f46c9628 Add a new string for widget configuration drop target
Test: manual. See screenshot in b/201286923
Fix: 201286923
Change-Id: I5be4f723523befe359b922273d11f57fb9f0b3fd
2021-09-29 12:15:07 +01:00
Bill Yi 22af63e81e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I207986576a30bbba439cd63bd06c8dd98c7921b5
2021-09-28 02:34:47 +00:00
Bill Yi a169335627 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idcfc99111d364805832038bcf4726cf41c6ceaf4
2021-09-28 02:33:18 +00:00
Jonathan Miranda 8fc7aae956 Merge "Update notification dot colors." into sc-v2-dev am: 1fc7507a29 am: 8bef782317
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15898789

Change-Id: I81659c152e3680c8277673e3e8913eae6ed27035
2021-09-25 02:27:03 +00:00
Jonathan Miranda 8bef782317 Merge "Update notification dot colors." into sc-v2-dev am: 1fc7507a29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15898789

Change-Id: I13a2f85b9f4a2a10db3e91e9165260862c46427d
2021-09-25 02:17:11 +00:00
Jonathan Miranda 1fc7507a29 Merge "Update notification dot colors." into sc-v2-dev 2021-09-25 02:03:06 +00:00
sfufa@google.com de0132939b [Foldable] Apply max width to AllApps in unfolded state.
Since we are applying the same iconWidth in AllApps as Workspace in unfolded state, this change restricts AllApps to span only the area required to display AllApps contents and not span full available width. Unfolded/phone behavior remains the same.

Bug: 199959857
Bug: 194259694
Test: visual
Change-Id: Ie5658d566f20e825e666ef17db79a87b07dc2936
2021-09-24 15:18:01 -07:00
TreeHugger Robot 682510b9f4 Merge "Make widget pickers edit text box parent focusable." into sc-v2-dev am: 8857382282 am: 388d7bb4a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897181

Change-Id: I23a4ce63b68248d6efb88cbf7713c4f2d46b02fe
2021-09-24 18:44:13 +00:00
TreeHugger Robot 388d7bb4a6 Merge "Make widget pickers edit text box parent focusable." into sc-v2-dev am: 8857382282
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897181

Change-Id: I2ed46a2e6f49d012f1a28bc491084e3bb5c4b3ef
2021-09-24 18:29:52 +00:00
TreeHugger Robot 8857382282 Merge "Make widget pickers edit text box parent focusable." into sc-v2-dev 2021-09-24 18:17:10 +00:00
Jon Miranda 8d5c8794f9 Update notification dot colors.
Bug: 195140159
Test: put icon with notification inside of a folder
      test light and dark theme

Change-Id: I1cb55c5a653bf6fe02fce8b5877507708d373d1b
2021-09-24 17:51:42 +00:00
TreeHugger Robot 0cefad626b Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-09-24 16:50:35 +00:00
TreeHugger Robot 59434c9677 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-09-24 16:47:38 +00:00
Alina Zaidi de262a919a Make widget pickers edit text box parent focusable.
This is so that when focus is cleared from edit text box, the focus
fallbacks to parent view when external keyboard is used.

Bug: b/197129170
Test: Manually checked that behavior is okay when widget picker and
search is used with and without keyboard. Manually checked talkback
navigation is ok.

Change-Id: Iec2e1ff183dae20803ba2f6eb6e260d2a57779b8
2021-09-24 15:01:20 +01:00
Bill Yi 19525fff1a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iab56202bb675b934c40e96024b3b216a3bb8391f
2021-09-24 09:30:29 +00:00
Bill Yi 378d562dc3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idf26ec658aea12bec9990dfcaec51683132c3bdf
2021-09-24 09:28:49 +00:00
Jonathan Miranda 1a1cc95c8f Merge "Significantly reduce gesture feedback when swiping up to home screen." into sc-v2-dev am: e2455aa1cf am: 5940915502
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15898541

Change-Id: I3d13ae1415abf495cafba6697ca4c04ed3e5f59f
2021-09-23 23:34:05 +00:00
Jonathan Miranda 5940915502 Merge "Significantly reduce gesture feedback when swiping up to home screen." into sc-v2-dev am: e2455aa1cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15898541

Change-Id: I99e6980287c57e2e308463037c4900e56577fe03
2021-09-23 23:23:50 +00:00
Jonathan Miranda e2455aa1cf Merge "Significantly reduce gesture feedback when swiping up to home screen." into sc-v2-dev 2021-09-23 23:14:50 +00:00
Samuel Fufa c57a284b8f Merge "[Refactor] Extract work profile related logic from AllAppsContainerView to WorkProfileManager" into sc-v2-dev am: 9ac78866d3 am: 85365415cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15670665

Change-Id: Ie0f726688c2ec4559a1711561c98428bc886bb2b
2021-09-23 20:45:50 +00:00
Samuel Fufa 85365415cd Merge "[Refactor] Extract work profile related logic from AllAppsContainerView to WorkProfileManager" into sc-v2-dev am: 9ac78866d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15670665

Change-Id: I526e941c126b06eb085567422bad8c79d63dfaad
2021-09-23 20:26:16 +00:00
Jon Miranda 13519e4402 Significantly reduce gesture feedback when swiping up to home screen.
- Uses overscroll damping logic to reduce the velocity
- The start to target rect interpolation can be from the
  start, center, or bottom of the rect depending on where the item
  is on the workspace. This reduces the  amount of distance needed to
  travel between, which helps further reduce gesture feedback.

Bug: 173107751
Test: test closing app that is on:
      -  top row of home screen
      -  middle of home screen
      - in hotseat

Change-Id: I055dd61ca3491807109ff2f6c501bf710c8d340f
2021-09-23 20:13:40 +00:00
Samuel Fufa 9ac78866d3 Merge "[Refactor] Extract work profile related logic from AllAppsContainerView to WorkProfileManager" into sc-v2-dev 2021-09-23 20:11:15 +00:00
Zak Cohen ecc9eee624 Merge "Update Overview scrim to N1 @ L35 for Dark Theme." into sc-v2-dev am: 144b5c182d am: cc5cfa385b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15889494

Change-Id: Ib55236791ad2f70fb9efe2a51562d4a8b11593fd
2021-09-23 16:06:52 +00:00
Zak Cohen cc5cfa385b Merge "Update Overview scrim to N1 @ L35 for Dark Theme." into sc-v2-dev am: 144b5c182d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15889494

Change-Id: Iebfd45d0aa7c8b5ed85fcedc54894110754b6a76
2021-09-23 15:58:15 +00:00
Zak Cohen 144b5c182d Merge "Update Overview scrim to N1 @ L35 for Dark Theme." into sc-v2-dev 2021-09-23 15:44:06 +00:00
Steven Ng baa470614f Merge "Fix RecyclerViewFastScroller scrolling in widgets full sheet" into sc-v2-dev am: 2c4c58a14e am: 4c9d83d6db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15871269

Change-Id: I7141f5b6e4b78b1511c125af1ea91d36e7e7d135
2021-09-23 08:32:27 +00:00
Steven Ng 4c9d83d6db Merge "Fix RecyclerViewFastScroller scrolling in widgets full sheet" into sc-v2-dev am: 2c4c58a14e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15871269

Change-Id: Idd623627eef21821689432b7f327d40369df83bc
2021-09-23 08:16:40 +00:00
Steven Ng 2c4c58a14e Merge "Fix RecyclerViewFastScroller scrolling in widgets full sheet" into sc-v2-dev 2021-09-23 08:05:35 +00:00
Vinit Nayak ab02520ca6 Merge "Shorten and center TaskMenuView for landscape" into sc-v2-dev am: 5dded93a72 am: 870a105b79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15857414

Change-Id: I144ed5776c8c64e9827309ef732b82ac0db43433
2021-09-23 06:17:04 +00:00
Vinit Nayak 870a105b79 Merge "Shorten and center TaskMenuView for landscape" into sc-v2-dev am: 5dded93a72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15857414

Change-Id: Iab80cdbf68e75a16b64f4b8e9bae9a8602866cc6
2021-09-23 06:07:37 +00:00
y eb52419282 [Refactor] Extract work profile related logic from AllAppsContainerView to WorkProfileManager
Bug: 195623679
Test: presubmit
Change-Id: I9954fb40034d1804aaf19f0778f95477e48ccc8f
2021-09-22 16:35:56 -07:00
Zak Cohen ebda0e4848 Update Overview scrim to N1 @ L35 for Dark Theme.
This avoids clashes with app backgrounds.

Bug: 197321290
Test: Flashed and tested in Dark Theme
Change-Id: Ie94b80ef5bf30f05834d2779f5fc9205dc03c2f4
2021-09-22 15:20:45 -07:00
Vinit Nayak 9e6a642d8b Shorten and center TaskMenuView for landscape
* The width of the task menu view for landscape
(both fake and real) is the same as the width
it would be in portrait.
* With the shorter width, we also center the
positioning of the TaskMenuView
* Note this is only for phone, large screen
changes TODO

Bug: 193432925
Test: Tested real/fake landscape + seascape,
view is centered. Portrait same as before.

Change-Id: Ide41e252a3c177c4a911aab544f78930fed2e76f
2021-09-22 14:55:29 -07:00
Jonathan Miranda 47bd7aeb3a Merge "Play window close animation to home for most app to launcher scenarios" into sc-v2-dev am: e37b51b30f am: 739afa1bec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15741392

Change-Id: I156b5694002f5c5c299b84d019f70c53536c00b0
2021-09-22 18:58:39 +00:00
Jonathan Miranda 739afa1bec Merge "Play window close animation to home for most app to launcher scenarios" into sc-v2-dev am: e37b51b30f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15741392

Change-Id: I95b22ad6b05fb86707aff017eb11fca3af9f9c7d
2021-09-22 18:38:32 +00:00
Steven Ng 0e8a2ce0a9 Fix RecyclerViewFastScroller scrolling in widgets full sheet
See b/200132426 regarding to the bugs.

Test: manually tested full widgets picker scrolling on phone and 2
      panels UI.
Fix: 200132426
Change-Id: I13c7a7262e9357cf0acac1c2c7c069b2118bd527
2021-09-22 18:02:44 +01:00
Jon Miranda 8d3d2757e2 Play window close animation to home for most app to launcher scenarios
- Animates into icon/widget location on workspace (when applicable)
- Excludes unlock animation
- Excludes when user goes back to to All Apps state

Bug: 197656197
Bug: 197450256
Bug: 197656915
Test: go in app, swipe back to land on home
Change-Id: Icdf680bd88599f1b6288822a177087283668431c
2021-09-21 20:19:23 -07:00