Commit Graph

4959 Commits

Author SHA1 Message Date
Thales Lima 919aed4e78 Merge "launcher: refactoring variables into arrays" into sc-v2-dev am: 292a993c4a am: ca8a29846d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15992133

Change-Id: Ia22d7339c83468fb7799d7cb0bb7c168de0389bc
2021-10-08 16:44:01 +00:00
Thales Lima ca8a29846d Merge "launcher: refactoring variables into arrays" into sc-v2-dev am: 292a993c4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15992133

Change-Id: Id958b647d40248428709567ce50321280283d72b
2021-10-08 16:27:01 +00:00
Thales Lima 83bedbfe97 launcher: refactoring variables into arrays
There are a lot of variables that can be merged together into arrays
following some optimizations done in other places.

Bug: 191879424
Test: checking cell size and extra space in dumpsys
Change-Id: I1d73fbb5da2df2345ced7f46df5bae5d75d9d6b1
2021-10-08 13:36:56 +01:00
Jon Miranda b77878ebe3 Update folder preview and folder background colors.
Bug: 201332301
Test: light theme / dark theme
      open and close folder, ensure colors are accurate

Change-Id: I49198eb2faee03111be33051fd1cb08094844c77
2021-10-06 16:57:33 -07:00
Bill Yi ae17b47a45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifc2c034f706e3c7afda44aaa1f76bad6571b5066
2021-10-06 21:36:48 +00:00
Bill Yi 513a60cdc2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I40d86c2f147e60939fd428ff277a63c7a75f0e3c
2021-10-06 21:35:04 +00:00
Thales Lima 1de472e558 Merge "launcher: create more space options" into sc-v2-dev am: 9a6b20f0cb am: c760160125
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15953000

Change-Id: I6113b9a28f0d33cdff55f3db584e853ed7f7a603
2021-10-05 16:14:19 +00:00
Thales Lima c760160125 Merge "launcher: create more space options" into sc-v2-dev am: 9a6b20f0cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15953000

Change-Id: I2a56836991153beeb1a0abbb342d5e268255976b
2021-10-05 15:55:55 +00:00
Thales Lima 9a6b20f0cb Merge "launcher: create more space options" into sc-v2-dev 2021-10-05 15:38:57 +00:00
Thales Lima 78d00adcbe launcher: create more space options
The grid doesn't have a constant space between cells anymore, so we need
new attributes for the different spaces in different situations.

Bug: 191879424
Test: checking cell size and extra space in dumpsys
Change-Id: I4b6aae5b3fea281490c00cd13d0cd3a25372f21b
2021-10-05 12:26:05 +01:00
Bill Yi 1b25982283 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-10-04 02:40:38 +00:00
TreeHugger Robot fd326d1a53 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-02 07:20:23 +00:00
Thales Lima fea867b980 Merge "launcher: create attrs for more horizontal margin options" into sc-v2-dev am: bfb6996484 am: 11f703dd36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15879755

Change-Id: Ia344342fa38c7e9a330280a29aa852279779662b
2021-10-01 13:44:25 +00:00
Thales Lima 11f703dd36 Merge "launcher: create attrs for more horizontal margin options" into sc-v2-dev am: bfb6996484
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15879755

Change-Id: I69a26b4bf883f71917690a08249d85350b4bcbc3
2021-10-01 13:32:09 +00:00
Thales Lima bfb6996484 Merge "launcher: create attrs for more horizontal margin options" into sc-v2-dev 2021-10-01 13:20:25 +00:00
Bill Yi e6b3d9fa93 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icf9a5136ea6af2fa9a1bfde9a8fbc18ff721f5bf
2021-10-01 11:43:04 +00:00
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