Commit Graph

16456 Commits

Author SHA1 Message Date
Jon Miranda 0f43611645 Merge "Fix spring not springing when unstashing." into tm-qpr-dev am: cbe578b269
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22202345

Change-Id: I25e8204b0e93dd986a88329d53fef8e0507b7832
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 18:18:42 +00:00
Jon Miranda cbe578b269 Merge "Fix spring not springing when unstashing." into tm-qpr-dev 2023-03-23 17:37:35 +00:00
Charlie Anderson 04c6def895 reorder System shortcuts for taskbar and secondary display
Bug: 269343928
Bug: 272418357
Test: locally on device
Change-Id: Iec7f9ad702214c7ab7f49758dbf2463fe63b0324
2023-03-23 15:27:12 +00:00
Tony Wickham c73db73a79 Handle swipe down on taskbar to stash
- Moved all touch-to-stash logic to new TaskbarStashViaTouchController
  (handles both tap outside to stash instantly as well as swipe down
  inside to stash after letting go)
- This is a TouchController on TaskbarDragLayer, so it intercepts
  touches from TaskbarView before icons can be dragged during swipe down

Test: swipe up to invoke transient taskbar in an app, swipe down or
touch outside to stash
Flag: ENABLE_TRANSIENT_TASKBAR=true
Fixes: 246631710

Change-Id: I5cf64848bba34ad32fcc80a93fb4f79ebd2c10a7
2023-03-23 15:13:52 +00:00
Brandon Dayauon 52248df31f Merge "Fix clipping in SearchResultBigIconRow" into tm-qpr-dev am: eae3f3483b am: 97be93ed15
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22209585

Change-Id: I28248b28f5a8d475edc5dd807133d5a0f8cd67b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 03:16:17 +00:00
Brandon Dayauon 97be93ed15 Merge "Fix clipping in SearchResultBigIconRow" into tm-qpr-dev am: eae3f3483b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22209585

Change-Id: Idf718589343797b6d26a0b54aa52e6878fa04959
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 02:37:44 +00:00
Brandon Dayauon eae3f3483b Merge "Fix clipping in SearchResultBigIconRow" into tm-qpr-dev 2023-03-23 01:45:34 +00:00
Brandon Dayauon 77092473b3 Merge "Move ENABLE_RECENT_BLOCK to NexusFeatureFlag.java" into udc-dev 2023-03-23 01:44:15 +00:00
Federico Baron d5295ea4e4 Fix bug where very large widgets get cropped out am: cb36de9e9f am: 2563c27666
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21381954

Change-Id: Ie31ccc8b4b09f66cb7963ab9bf405696cf4b8509
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 01:17:10 +00:00
Federico Baron 2563c27666 Fix bug where very large widgets get cropped out am: cb36de9e9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21381954

Change-Id: I4ba8308dbabe71fe520c40cba39e46d191f541ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 00:40:01 +00:00
Brandon Dayauon f50106c322 Fix clipping in SearchResultBigIconRow
Remove the compound drawable padding being set in bubbleTextView because this causes the clipping.
This was originally set here horizontal layout, instead will set the correct compound drawable padding
on the horizontal container itself specifically (in another CL) so it doesn't affect other views/layoutTypes that uses
SearchResultBigIconRow

bug: 274723319
test: Manual - before: https://screenshot.googleplex.com/C2G6UXRMUkCJsAk
after: https://screenshot.googleplex.com/9R85bzfuiRiALqw
Change-Id: Ifee3016663225bc922fce602a52ab9f0534d1ef9
2023-03-22 22:16:07 +00:00
Federico Baron cb36de9e9f Fix bug where very large widgets get cropped out
Fix: 268715418
Test: Open widget picker on tablet and verify that very large widgets (eg Youtube music recently played) are not cropped on tablets
Change-Id: I0f4609c8b7af889f39cac304ad4f6a44039f5762
2023-03-22 21:24:14 +00:00
Sebastián Franco 6218c0f650 Merge "Stop DeleteDropTarget from setting the containerId of items to NO_ID" into tm-qpr-dev am: d1cab0e379 am: 5d744eedb4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21915625

Change-Id: Ia4d52f643c645d0b5880c59692df12fbad4c6c61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 21:17:56 +00:00
Sebastián Franco 5d744eedb4 Merge "Stop DeleteDropTarget from setting the containerId of items to NO_ID" into tm-qpr-dev am: d1cab0e379
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21915625

Change-Id: Ia64d657e1f8dd486917d3b5e95260805a6f5fab3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 20:41:49 +00:00
Federico Baron 8e38e51495 Merge "Widget picker two pane polish" into udc-dev 2023-03-22 20:38:28 +00:00
Sebastián Franco d1cab0e379 Merge "Stop DeleteDropTarget from setting the containerId of items to NO_ID" into tm-qpr-dev 2023-03-22 20:06:03 +00:00
Sebastián Franco bc4ff9c6b2 Merge "Setting FOLDABLE_SINGLE_PAGE to true" into udc-dev 2023-03-22 20:05:44 +00:00
Tony Wickham 89501aede7 Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev am: f93aa98e3a am: b04aeba66b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22125079

Change-Id: Id47004d671ec6f4493217a9e50007b25296e1474
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 19:58:53 +00:00
Tony Wickham b04aeba66b Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev am: f93aa98e3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22125079

Change-Id: I245d2ad27841078ceb09476f4c20608d06047753
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 19:20:31 +00:00
Jon Miranda 5945226515 Fix spring not springing when unstashing.
The spring animation was getting cancelled by the reset
animation.

Added a check to avoid creating a new reset animation if we
are already animating to the final value.

Bug: 273961611
Change-Id: I3afb62b89b5f6fbe920906499db2497ef8e94069
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash transient taskbar
2023-03-22 11:53:58 -07:00
Tony Wickham f93aa98e3a Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev 2023-03-22 18:46:56 +00:00
Stefan Andonian 1e45b3b949 Merge "Stop enabling the Boot Aware Launcher prefs code during Tests after running LauncherPref unit tests." into tm-qpr-dev am: acaecb6511 am: e78b57101d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22163308

Change-Id: I93ba6cface532a19e7e73dc35125289e77f6cffd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 18:44:07 +00:00
Stefan Andonian e78b57101d Merge "Stop enabling the Boot Aware Launcher prefs code during Tests after running LauncherPref unit tests." into tm-qpr-dev am: acaecb6511
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22163308

Change-Id: I63c1ea9e14474d3b4fdd4cb6974246ce021a54df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 17:44:31 +00:00
Stefan Andonian acaecb6511 Merge "Stop enabling the Boot Aware Launcher prefs code during Tests after running LauncherPref unit tests." into tm-qpr-dev 2023-03-22 17:17:57 +00:00
Tony Wickham 1e29b04f19 Set PredictedAppIcon ring disabled when icon is disabled
Test: drag a predicted app from taskbar, ensure both ring and icon are
set to grayscale
Fixes: 268759548

Change-Id: I764ebcd486c09eceaf30c5bd5153a1dd2ff5be72
2023-03-22 16:53:10 +00:00
Tracy Zhou a2871844d1 Merge "Disable 3-finger workspace scroll" into udc-dev 2023-03-22 05:53:20 +00:00
Tracy Zhou a33fb69603 Disable 3-finger workspace scroll
Fixes: 274474023
Test: 3-finger horizontal scroll on the workspace doesn't do anything
Change-Id: I32ade8a5c26eae43f5ce9c8c71d47ed0d1abd5a2
2023-03-21 17:17:35 -07:00
Jeremy Sim e71032e2cf Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev am: 3c8def9f88 am: ce97be3d12
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22077752

Change-Id: I38ab3fedc4a6cbb164a8b0f8e5a8be8f1c4a4aea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 00:15:48 +00:00
Jeremy Sim ce97be3d12 Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev am: 3c8def9f88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22077752

Change-Id: I9563711ed0b857616a559a7f07486c4da3b0c0d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 23:58:07 +00:00
fbaron d11a9e1d08 Widget picker two pane polish
-increase width of two pane picker
-center widgets when they're too few to overflow
-make background stretch out all the way to the bottom even when there aren't multiple widgets
-fit many widgets in one row if they fit

Bug: 256684299
Test: open widget picker and notice that all the listed fixes match the last figma added in the bug
Change-Id: Id4e8445f4ffe484c24c04fd9d1b4ffbf93a00bb2
2023-03-21 16:49:45 -07:00
Jeremy Sim 3c8def9f88 Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev 2023-03-21 23:34:34 +00:00
Sebastian Franco 17ab6a5d44 Setting FOLDABLE_SINGLE_PAGE to true
Bug: 270395274
Test: atest ReorderWidgets
Test: atest FoldableItemsIntegrity
Change-Id: I25411facd9d8745a7a7906252869979b7ecec457
2023-03-21 23:14:38 +00:00
Brandon Dayauon 8d5d853b31 Move ENABLE_RECENT_BLOCK to NexusFeatureFlag.java
bug: 274132227
test: Manual/Presubmit
Change-Id: I3caf9c8824a905b7796ae4d7aa2a2dab9d44a8f1
2023-03-21 22:49:20 +00:00
Sebastián Franco 2a40823a78 Merge "Fixing test that fail when FOLDABLE_SINGLE_PAGE is set to true" into udc-dev 2023-03-21 22:32:42 +00:00
Federico Baron 28a8d5a14c Merge changes I8ccf962f,I383c7540 into udc-dev
* changes:
  Turn on the flag for large screen widget picker
  Add test for widget picker on landscape mode for tablets
2023-03-21 22:28:18 +00:00
Jeremy Sim 8eed87ac89 Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu
This patch fixes a bug where the transient Taskbar was not hiding properly after splitscreen was initiated. When the user is inside an app and launches splitscreen by longpressing on a Taskbar icon and selecting the split button, the transient Taskbar should hide right away. This is an equivalent action to dragging the Taskbar icon up to create a split, and should hide the Taskbar so that other UI elements (like system-level toasts and error messages) can be seen.

The bug occurred because updateAndAnimateTransientTaskbar() is not being called in this specific code path to stash the Taskbar.

Fixed by adding a new call to updateAndAnimateTransientTaskbar upon clicking the splitscreen menu button.

Fixes: 272292897
Test: Manual
Change-Id: I64a9acfc41ddcaba4d9f43eb216458de44b4c9a4
2023-03-21 14:35:36 -07:00
Pinyao Ting bb90cfb25a Merge "Retains cached widget in launcher process" into tm-qpr-dev am: a35d04afef am: bb38c78fa5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22146535

Change-Id: I825f19436115fbfa3279ba2182305cd9825b27dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 21:25:06 +00:00
Pinyao Ting bb38c78fa5 Merge "Retains cached widget in launcher process" into tm-qpr-dev am: a35d04afef
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22146535

Change-Id: Ib434ecc52eb81643a6513071cd66e189f427de4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 20:29:50 +00:00
Pinyao Ting a35d04afef Merge "Retains cached widget in launcher process" into tm-qpr-dev 2023-03-21 20:15:41 +00:00
Tony Wickham 5513239387 Merge "Update folder leave-behind color for taskbar" into tm-qpr-dev am: 0165aa82c6 am: f497c59b5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21968430

Change-Id: Ie80383899e7881512b4434f72a43df7328f36113
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 18:43:20 +00:00
Pinyao Ting bd638e7b41 Retains cached widget in launcher process
Currently cached widget are retained in LauncherWidgetHolder which is
released when Launcher activity is recreated. This CL moves the cached
widget into LauncherAppState to keep the cache alive.

Bug: 268189435
Test: steps below
1. Add multiple widgets (Calendar / Weather ... e.t.c) to Home Screen
2. Open Google Map, start navigation to any place
3. Google Map enters navigation mode and changes resolution
4. Swipe up to exit Google Map and go to Home Screen
5. Verify you don't see deferred widget host view.

Change-Id: I8b56167313780cd1be2a5da88517114acc6d44af
2023-03-21 11:04:31 -07:00
Tony Wickham f497c59b5e Merge "Update folder leave-behind color for taskbar" into tm-qpr-dev am: 0165aa82c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21968430

Change-Id: Ifd652848a3006de0c975410623ed3f59c8f17023
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 18:04:28 +00:00
Saumya Prakash d3eadb74d3 Merge "Enable the redesigned gesture navigation tutorial" into udc-dev 2023-03-21 17:39:00 +00:00
Federico Baron ac978187a7 Turn on the flag for large screen widget picker
Bug: 256684299
Test: N/A
Change-Id: I8ccf962faab42c3ea012ddcf4650ded01cfaf7f2
2023-03-21 16:48:12 +00:00
Federico Baron c3ab820144 Add test for widget picker on landscape mode for tablets
When we added widget picker two pane layout, it broke some tests with the flag on. Here we fix those tests.
Bug: 256684299
Test: AddWidgetsTest and TaplTestsLauncher3#testWidget

Change-Id: I383c754016d82fba51fa0b7b0459cd7e83b274d8
2023-03-21 16:48:12 +00:00
Tony Wickham 0165aa82c6 Merge "Update folder leave-behind color for taskbar" into tm-qpr-dev 2023-03-21 16:38:46 +00:00
Jon Miranda 6e816aaf37 Merge "Add a way to fade out taskbar view when closing an app in the taskbar." into tm-qpr-dev am: 149246f077 am: ce06cf89b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22141153

Change-Id: I919b45021c1fbc2a5d5c30c2d5eca71a672cd5be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 14:14:43 +00:00
Jon Miranda ce06cf89b0 Merge "Add a way to fade out taskbar view when closing an app in the taskbar." into tm-qpr-dev am: 149246f077
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22141153

Change-Id: Ia0212c2829b01c5b0faf120d6303b7cf6d147ad6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 13:33:32 +00:00
Jon Miranda 149246f077 Merge "Add a way to fade out taskbar view when closing an app in the taskbar." into tm-qpr-dev 2023-03-21 13:01:30 +00:00
Hyunyoung Song a38aab93b9 Revert "Revert "Hide the splash icon when launching with no view..."
Revert submission 21916962-revert-21447384-no-splash-UILAXIUPKJ

Reason for revert: Retry errorprone target

Reverted changes: /q/submissionid:21916962-revert-21447384-no-splash-UILAXIUPKJ
Flag: production issue. Not hidden behind flag
Bug: 269343536
Test: manual

Change-Id: Ia365f886d39d63472d72afc2033fc67e19109f57
2023-03-20 23:33:11 -07:00