Commit Graph

34630 Commits

Author SHA1 Message Date
TreeHugger Robot be401a7cdb Merge "Adjust the widgets fitting algorithm to mitigate over packing issue" into sc-dev am: 96793bdfe1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14717701

Change-Id: I20ed31a66c4fe1aed11dee6ad7ebb4db4422c9b7
2021-05-26 21:28:50 +00:00
TreeHugger Robot 96793bdfe1 Merge "Adjust the widgets fitting algorithm to mitigate over packing issue" into sc-dev 2021-05-26 21:06:57 +00:00
TreeHugger Robot e8eccdb81c Merge "Update colors for Digital Wellbeing Toast." into sc-dev am: 3558f084f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14737897

Change-Id: I3b57f1a24b2f52ac619d634176bc71720ae0d5ae
2021-05-26 20:20:08 +00:00
TreeHugger Robot 3558f084f3 Merge "Update colors for Digital Wellbeing Toast." into sc-dev 2021-05-26 20:05:48 +00:00
Sunny Goyal e85dc514cd Enabling themed icon feature
Bug: 183641907
Test: Manual
Change-Id: I79643803bb50ab2f4b40122258cd1c8bf89b90ad
2021-05-26 12:40:35 -07:00
Schneider Victor-tulias 9909544c8a Update gesture nav colors and animation for dark/light theming
- Added light mode gesture feedback animations
- Added color resources for the fake launcher wallpaper. Also using these color resources in the feedback animations for consistency
- Using fake previous app task color in feedback animations for consistency

Bug: 169687177
Test: manual
Change-Id: I1d28212e02c2ae750ce6241b64aa90f52b827c76
2021-05-26 12:34:29 -07:00
Steven Ng b7773f93cf Adjust the widgets fitting algorithm to mitigate over packing issue
If we are fitting more than one widgets / shortcuts on the same row,
we will only allow the total width to be n - 1 cells, where n is the
grid width in cells.

Test: Run WidgetsTableUtils robolectric test.
Bug: 189103942
Change-Id: I2f23cb08fe95d68562188cc7b1852d99d7093dc0
2021-05-26 19:27:46 +01:00
TreeHugger Robot 4daf838704 Merge "Add haptic feedback to Launcher recent apps scrolling" into sc-dev am: b1858afaf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14678275

Change-Id: I99c4b7a85069a187db77d8dc51c6dee532a0681b
2021-05-26 18:21:58 +00:00
zakcohen 14b6898126 Update colors for Digital Wellbeing Toast.
Bug: 179922117
Test: Local
Change-Id: Iec58238ba92218ab2a22027b9c821804fb0d9df2
2021-05-26 11:10:37 -07:00
TreeHugger Robot b1858afaf2 Merge "Add haptic feedback to Launcher recent apps scrolling" into sc-dev 2021-05-26 18:05:33 +00:00
Tony Wickham f262591ab0 Merge changes I6bf48141,I77b7a2e4 into sc-v2-dev
* changes:
  Taskbar drag starts internal pre-drag before system drag
  Let DragView use ActivityContext instead of Launcher
2021-05-26 17:13:49 +00:00
Stevie Kideckel 47f935dbbe Add the DefaultItemAnimator, without change animations
Change animations cause the addition of another view to be able to
crossfade/interpolate the two. Disabling change animations prevents us
losing the focus when a header row changes due to expanding or
collapsing.

Test: verified locally
Bug: 183378651
Change-Id: I07837b41748b5206936321c08d376069fa81b363
2021-05-26 17:08:18 +00:00
Lais Andrade b1ef5e5c55 Add haptic feedback to Launcher recent apps scrolling
Add light LOW_TICK effects when the scrolling on RecentsView
snaps to a page, and a stronger TICK effect when the edges
absorb the scroll (by scrolling fast towards one of the edges).

Fix: 182382085
Test: manual
Change-Id: Ifb917ae499f73607707773f9870eb39cd6fe16ef
2021-05-26 13:37:30 +01:00
Stevie Kideckel 5d9704b8bd Merge "Remove intrinsic padding from widget previews" into sc-dev am: fa7c98ee45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14719550

Change-Id: Id26445a7f7d75d2258c8b2c888043a4e9e808df6
2021-05-26 09:40:53 +00:00
TreeHugger Robot af76459cc4 Merge "Update Gesture nav tutorial." into sc-dev am: 694b667138
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669183

Change-Id: Ide38747f0b1a2bcf6f76921fb9650ee7d188dad7
2021-05-26 09:39:53 +00:00
Stevie Kideckel fa7c98ee45 Merge "Remove intrinsic padding from widget previews" into sc-dev 2021-05-26 09:27:11 +00:00
TreeHugger Robot 694b667138 Merge "Update Gesture nav tutorial." into sc-dev 2021-05-26 09:20:18 +00:00
Jason Chang da85cb91f1 Migrate trigger logic to fullfill new UI changes for
One-handed mode settings.

According to new key visual changes for One-handed mode,
modify the trigger condition to reflect the changes.

Bug: 175851783

Test: manual
Test: atest WMShellUnitTests
Change-Id: I4d734b31cafd5ce884010642b5e613c3deadfb20
2021-05-26 14:39:56 +08:00
TreeHugger Robot 0bb0e3f426 Merge "Leak 2 views for the view leak detection test" into sc-dev am: ce7d5270bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14554244

Change-Id: Ib7b4181c1c9d1ff3173ca8ddd690c19b751708a1
2021-05-26 02:42:42 +00:00
TreeHugger Robot ce7d5270bd Merge "Leak 2 views for the view leak detection test" into sc-dev 2021-05-26 02:18:47 +00:00
Evan Rosky a7b9f89e5b Merge "Fix launcher-in-transition-targets detection" into sc-v2-dev 2021-05-26 01:06:36 +00:00
Samuel Fufa 7c6515f59e Merge "[Search] Resolve afterimage when closing allapps" into sc-dev am: 53ec9a4e06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14722826

Change-Id: I78761a5b262e7c182eeeab44aebdcb46e62a7c45
2021-05-26 00:46:06 +00:00
Samuel Fufa 53ec9a4e06 Merge "[Search] Resolve afterimage when closing allapps" into sc-dev 2021-05-26 00:42:58 +00:00
TreeHugger Robot 884c22fb0d Merge "Set mEnableDrawingLiveTile = false in RecentsView#reset()" into sc-dev am: e81ac4f170
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14723558

Change-Id: Idc93ece04633575d328b1c6575952566485e184d
2021-05-26 00:31:54 +00:00
TreeHugger Robot a8c8b9d88d Merge "Crossfading splashscreen if icon is themed" into sc-dev am: 55060ca7ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14687100

Change-Id: I77a11e42d2704a07c2a3a9307c79dcab6cbdb69c
2021-05-26 00:31:04 +00:00
TreeHugger Robot e81ac4f170 Merge "Set mEnableDrawingLiveTile = false in RecentsView#reset()" into sc-dev 2021-05-26 00:29:11 +00:00
TreeHugger Robot 55060ca7ea Merge "Crossfading splashscreen if icon is themed" into sc-dev 2021-05-26 00:26:22 +00:00
TreeHugger Robot 89c8b063eb Merge "Overview - Remove the space withheld for proactive chips" into sc-dev am: d98a784d0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14706422

Change-Id: Idaaa1ab0c829f0e65ca6131cceda25f502914b10
2021-05-26 00:16:14 +00:00
TreeHugger Robot d98a784d0e Merge "Overview - Remove the space withheld for proactive chips" into sc-dev 2021-05-26 00:11:18 +00:00
Vinit Nayak 3716f61615 Merge "TaskMenu in overview UI polish" into sc-dev am: b74b9d2966
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14604156

Change-Id: If7567a5c2639b03d95ffb1b34bf3466858d2f67d
2021-05-26 00:01:48 +00:00
TreeHugger Robot b432ce139e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 3f7a9c198d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id262e49190e823356ff3998e68a7b497e743dd5a
2021-05-26 00:01:41 +00:00
TreeHugger Robot 29f26e862f [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 3b20449045 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia38ecff3b741adadbcc1e2eb091cc9ec223689f1
2021-05-26 00:01:28 +00:00
TreeHugger Robot df6be55b88 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 03334795e7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4b4246c79f9788c2dda58b07f1c1eee7f38c8d70
2021-05-26 00:01:07 +00:00
Vinit Nayak b74b9d2966 Merge "TaskMenu in overview UI polish" into sc-dev 2021-05-25 23:56:00 +00:00
TreeHugger Robot 3f7a9c198d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:44:56 +00:00
TreeHugger Robot 3b20449045 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:41:55 +00:00
TreeHugger Robot 03334795e7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:41:26 +00:00
TreeHugger Robot fce84542ad Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-05-25 23:20:18 +00:00
TreeHugger Robot ccbcdc511d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-05-25 23:19:38 +00:00
TreeHugger Robot 9aef05102a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-05-25 23:15:38 +00:00
Tony Wickham 1fe96abb86 Set mEnableDrawingLiveTile = false in RecentsView#reset()
This should help ensure we only finish the recents controller when we're actually still in live tile mode.

Test: theoretical (no repro steps)
Fixes: 187354606 (hopefully)
Change-Id: If0632f03535e4aafaea751724f080f272a6af58f
2021-05-25 15:59:31 -07:00
Steven Ng 1ef7e145d2 Fix add extra empty screen logic
The bug occurred when there are two widgets in a CellLayout. When
dragging one of the widget, ShortcutAndWidgetContainer#getChildCount
returns 1 rather than 2 because the LauncherAppWidgetHostView of the
widget in drag has been detached from its parent and reattached to
DragView (introduced in ag/14234627).

Test: Place only two widgets on the last page of the home screen. Drag
      one widget. The new page indicator on the right is shown.
Bug: 188494523
Change-Id: I8255dd1b72ad7f18f4cb35a9e14ac8e61804980c
2021-05-25 23:39:40 +01:00
Bill Yi 4060c680aa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I22959ee18a399ff18edd1a73bf40d4fa3d809e1e
2021-05-25 22:39:11 +00:00
Bill Yi c84ee09dbd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifca3cdf2713b121701f57a02c88353397a2a9222
2021-05-25 22:38:33 +00:00
Bill Yi 6e3b6a95d1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If51c7ec51fd23edb42c51526d85a992bc71be8e3
2021-05-25 22:37:54 +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
Bill Yi 5a3b982292 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4c8c62ce573c641cf38c6fc6cb15fcf208289c20
2021-05-25 22:37:05 +00:00
Bill Yi e70d6c492b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I46496d705598b872aedbf575425d371d291c157d
2021-05-25 22:36:33 +00:00
Tony Wickham 8ac277ebd8 Taskbar drag starts internal pre-drag before system drag
- TaskbarDragController now extends DragController.
- Currently there is no pre-drag condition, so we immediately get onDragStart(), which starts the system global drag (which cancels the original internal drag).
- Make the original view invisible during the drag and drop operation, across both internal and system drag events.
- No longer handle onDragEvent() in TaskbarView, as TaskbarDragController handles all of it now.

Test: Drag and drop from taskbar still works (bonus: starts from the correct registration point that you touched down on). Locally added a PreDragCondition and verified a seamless handoff to system drag and drop when the pre drag end condition was met.
Bug: 182981908
Change-Id: I6bf48141a5eedfc6db6f461258e880ef8146e733
2021-05-25 15:35:58 -07:00
Tony Wickham c7cbf254f3 Let DragView use ActivityContext instead of Launcher
- Make DragView abstract and extended by LauncherDragView for the explicitly Launcher-specific parts.
- Some other methods like Utilities.getFullDrawable() now accept (Activity)Context rather than Launcher.

Test: Compiles and runs, manual drag and drop
Bug: 182981908
Change-Id: I77b7a2e48ce864dd711c3232217fdba4d60c546f
2021-05-25 15:35:55 -07:00