Commit Graph

58436 Commits

Author SHA1 Message Date
Ats Jenk
6f50ca34c4 Pin desktop tile to the right in overview
When desktop windowing prototype is enabled, pin desktop tile to the
right of the focused tile.
Also making desktop tile persistent so it will always show up,
regardless whether there are tasks added to the desktop or not.
Fixing some nullpointer issues that stem from that.

Bug: 261234155
Test: no recent tasks, go to overview, shows empty view
Test: only desktop tasks, go to overview from home, desktop tile focused
Test: only desktop tasks, desktop open, go to overview, desktop tile
  focused
Test: 1 fullscreen task and some desktop tasks, go to overview from home
  screen, fullscreen tile focused
Test: fullscreen task open and no desktop tasks, go to overview,
  fullscreen task focused and empty desktop tile on the right
Test: fullscreen task open and some desktop tasks in background, go to
  overview, fullscreen tile focused, desktop tile on the right
Test: some desktop tasks focused, some fullscreen tasks in background,
  go to overview, desktop tile focused, fullscreen tasks on the left

Change-Id: Ib28185b40f639d36b82b6d0e3c61026ec84e245c
2023-02-03 17:29:43 -08:00
Brian Isganitis
f697304221 Merge "Support persistent/transient asset variants in EDU tooltip." into tm-qpr-dev am: d98de99af8 am: e8d81d0f16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21232019

Change-Id: I0e35d7ee51a7295d0cf694a9564e2baea21f9d26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 00:41:10 +00:00
Brian Isganitis
e8d81d0f16 Merge "Support persistent/transient asset variants in EDU tooltip." into tm-qpr-dev am: d98de99af8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21232019

Change-Id: Id2af6799b119c50945ce642ebb0938ebb9597787
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 00:05:41 +00:00
Brian Isganitis
d98de99af8 Merge "Support persistent/transient asset variants in EDU tooltip." into tm-qpr-dev 2023-02-03 23:24:58 +00:00
Jon Miranda
11b47c542e Crop taskbar icons during stash/unstash animation.
When we stash, we crop the taskbar icons to the height of the
stashed handle.

In a follow up CL we will translate the icons so that at the
end of the stash animation, the icons will overlap with the
stashed handle for a more seamless handoff.

This will be good to get in first so that we can see if there is
any performance regression by running multiple outline
animations at the same time.

Test: stash/unstash observe cropping
Bug: 267806083
Change-Id: I19b05647a669c11376ac1d3267fd600131246be8
2023-02-03 15:14:42 -08:00
Andy Wickham
346771550e [revert ^2] Enable Floating Search and update tests accordingly.
Tests need to be updated to account for the new placement of the
searchbar because it overlapped with touch events for scrolling:
 - Scroll back to top: Instead of scrolling from the top of the
   container which could overlap status bar in landscape, scroll
   from the bottom of the top-most visible app icon.
 - Scroll down: swipe up from bottom padding to top of top-most
   visible icon.
 - Close all apps: swipe down more quickly from top icon insetad
   of the search bar (more quickly helps it be detected as a
   fling on more cramped devices).

For Launcher3, the floating flag is not fully supported yet, so
there were some layout issues which are now resolved by ignoring
the flag if the searchbar is still at the top.

Fix: 261873937
Test: Ran tests, manual
Change-Id: I406fbcbe12acddb1dd4b862a380576a48cabbebc
2023-02-03 14:24:22 -08:00
Vinit Nayak
4b76e9123f Set StateManager to BackgroundAppState if end gesture is NEW_TASK
* QUICK_SWITCH_FROM_HOME was incorrectly used as that LauncherState
is only meant for quickswitching for the most recent task from
workspace

Bug: 265734073
Test: Tested quickswitch with fullscreen and splitscreen tasks
Change-Id: Ia81152927f57203cf6adb90254675bcf82a2e836
2023-02-03 14:16:09 -08:00
Sihua Ma
d9c69bc701 Merge "Rename the widget suggestion background drawable for outside usage" into tm-qpr-dev am: 7b7130db3d am: 34da4b1a94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21227612

Change-Id: Icb5baaa00a890cc5a2263dc868dab27beead0dcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 21:35:54 +00:00
Sebastián Franco
04ba7b0e23 Merge "Adding test to make sure the icons seen when unfolded are the same when folded" into tm-qpr-dev am: b57479c189 am: 591b511565
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21120301

Change-Id: Ib3709fdadf7a07006f5916461f636ea7abc81b03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 21:35:38 +00:00
Sihua Ma
34da4b1a94 Merge "Rename the widget suggestion background drawable for outside usage" into tm-qpr-dev am: 7b7130db3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21227612

Change-Id: I95665fc397d7ad677f8a646d7dd649d3ea307ef2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 21:31:45 +00:00
Sihua Ma
7b7130db3d Merge "Rename the widget suggestion background drawable for outside usage" into tm-qpr-dev 2023-02-03 21:14:04 +00:00
Sebastián Franco
591b511565 Merge "Adding test to make sure the icons seen when unfolded are the same when folded" into tm-qpr-dev am: b57479c189
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21120301

Change-Id: I6b533a97afe291c4211983705e5c8e4caed8bfa5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 21:01:14 +00:00
Sebastián Franco
b57479c189 Merge "Adding test to make sure the icons seen when unfolded are the same when folded" into tm-qpr-dev 2023-02-03 20:39:04 +00:00
Winson Chung
29300d63d6 Merge "Revert "Include SysUI state in stashing check"" into tm-qpr-dev am: 537c380bcb am: 9d26c12ac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21236591

Change-Id: I0c1283ad8f4e427d345de1b6927b39da2e139c23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:43:42 +00:00
Fengjiang Li
2d94d7d58f Merge "[Predictive Back] Hide inactive recycler view when work profile is enabled on tablet" into tm-qpr-dev am: 0510c290a0 am: b7a9587380
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21135806

Change-Id: I7c9974e3cef1c2242b4991f5bed70aebe038c3c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:43:31 +00:00
Tony Wickham
01b66f98ca Merge "Don't applyState if taskbar is already destroyed" into tm-qpr-dev am: 632e9a84c4 am: 25dd967b05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21238187

Change-Id: I9a1f6a9556aa8bf321d0527fc90c1e6f9c5c5fd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:43:21 +00:00
Vinit Nayak
82b8aa561a Rename LauncherState QUICK_SWITCH to QUICK_SWITCH_FROM_HOME
Test: compiles
Bug: 265734073
Change-Id: I38e23c62b1eeae6a26db9c388655a8ffceb025b6
2023-02-03 10:38:21 -08:00
Fengjiang Li
d080b98b76 [Predictive Back] Revert all apps scale when exiting from search
Bug: b/267522879
Test: manual, see before after videos in bug
Change-Id: I7b14739fee23a22920d71841fc1c3c12b34a3d0c
2023-02-03 10:28:46 -08:00
Winson Chung
9d26c12ac4 Merge "Revert "Include SysUI state in stashing check"" into tm-qpr-dev am: 537c380bcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21236591

Change-Id: I7ba45cb519628412cd3761a799b48a00024c3f65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:17:15 +00:00
Fengjiang Li
b7a9587380 Merge "[Predictive Back] Hide inactive recycler view when work profile is enabled on tablet" into tm-qpr-dev am: 0510c290a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21135806

Change-Id: I04318412a7f6479e2ab21204f8f004b742d2f454
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:15:16 +00:00
Tony Wickham
25dd967b05 Merge "Don't applyState if taskbar is already destroyed" into tm-qpr-dev am: 632e9a84c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21238187

Change-Id: I9a176de6fb3a3d03350a8c782e5a1919947fefe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:14:04 +00:00
Winson Chung
537c380bcb Merge "Revert "Include SysUI state in stashing check"" into tm-qpr-dev 2023-02-03 18:02:17 +00:00
Fengjiang Li
0510c290a0 Merge "[Predictive Back] Hide inactive recycler view when work profile is enabled on tablet" into tm-qpr-dev 2023-02-03 18:01:24 +00:00
Tony Wickham
632e9a84c4 Merge "Don't applyState if taskbar is already destroyed" into tm-qpr-dev 2023-02-03 17:55:30 +00:00
Alex Chau
bcde1d5aa9 Log sizes being sent to widgets
Bug: 267448330
Test: manual
Change-Id: I25039c9c5721f4746a07e701caffacd0c7bd2609
2023-02-03 17:16:03 +00:00
Pat Manning
e1fabeeabe Merge "Move overview actions to task menu when no focused task." into tm-qpr-dev am: cbedc7ed08 am: 442a4fca3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980940

Change-Id: I3e4b63d43fcb1eaa714268867814cc3031ec8732
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 14:44:00 +00:00
Sam Dubey
51e1ef37f7 Merge "Revert "Enable Floating Search by default and update tests accordingly."" 2023-02-03 14:42:49 +00:00
Pat Manning
442a4fca3a Merge "Move overview actions to task menu when no focused task." into tm-qpr-dev am: cbedc7ed08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980940

Change-Id: Ia6798f67b1f5a735020615bb28767d35974dfa87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 14:13:40 +00:00
Pat Manning
cbedc7ed08 Merge "Move overview actions to task menu when no focused task." into tm-qpr-dev 2023-02-03 13:51:54 +00:00
Sam Dubey
29f78a597b Revert "Enable Floating Search by default and update tests accordingly."
This reverts commit 952400d2f2.

Reason for revert: b/267743311

Change-Id: I007274cdea1c424c87ddea4592e9e1c7a273bea9
2023-02-03 12:45:15 +00:00
Luca Zuccarini
3be7449605 Disable splash icon when launching a search result.
Bug: 262751986
Test: manual, see videos in bug
Change-Id: I58888ee58f3e02541bcdf6b3e775a2dc077a30b7
2023-02-03 11:49:11 +00:00
Andy Wickham
89638d2252 Merge "Enable Floating Search by default and update tests accordingly." 2023-02-03 10:27:38 +00:00
Sunny Goyal
f98fc1d099 Merge "Exposing method to register content providers in sandbox context" into tm-qpr-dev am: de15772052 am: 459f2c7114
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21236578

Change-Id: Icb74ab16c876aa65db0110a6e39faa50ec4f0a09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 08:29:53 +00:00
Sunny Goyal
459f2c7114 Merge "Exposing method to register content providers in sandbox context" into tm-qpr-dev am: de15772052
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21236578

Change-Id: Ifb7c9f2ca49bd029cfe7a7ccd724bd338ac718f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 07:59:44 +00:00
Sunny Goyal
de15772052 Merge "Exposing method to register content providers in sandbox context" into tm-qpr-dev 2023-02-03 07:34:10 +00:00
Vinit Nayak
a15f39bc6d Merge "Unify split options into single option" into tm-qpr-dev am: 6fa1ab9441 am: 4e1c1faa37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21074650

Change-Id: If7bdd0fe1a72d5e321933eb566e58f20fbfefcf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 07:09:18 +00:00
Vinit Nayak
8c373e6f3b Merge "Set StateManager to BackgroundAppState if end gesture is LAST_TASK" into tm-qpr-dev am: c1799a8221 am: dc8d558947
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21233604

Change-Id: I261439b90ec5c18c9c318c8662e9b3c414996cdc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 07:09:07 +00:00
Vinit Nayak
4e1c1faa37 Merge "Unify split options into single option" into tm-qpr-dev am: 6fa1ab9441
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21074650

Change-Id: I6a21549a20a8f90dcc35ed29285023e844e1e627
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 06:36:19 +00:00
Vinit Nayak
dc8d558947 Merge "Set StateManager to BackgroundAppState if end gesture is LAST_TASK" into tm-qpr-dev am: c1799a8221
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21233604

Change-Id: If78e768276933ec8d72420508b8ff6b1bd8b4410
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 06:36:08 +00:00
Vinit Nayak
6fa1ab9441 Merge "Unify split options into single option" into tm-qpr-dev 2023-02-03 06:07:41 +00:00
Vinit Nayak
c1799a8221 Merge "Set StateManager to BackgroundAppState if end gesture is LAST_TASK" into tm-qpr-dev 2023-02-03 06:05:22 +00:00
Andy Wickham
952400d2f2 Enable Floating Search by default and update tests accordingly.
Tests need to be updated to account for the new placement of the
searchbar because it overlapped with touch events for scrolling:
 - Scroll back to top: Instead of scrolling from the top of the
   container which could overlap status bar in landscape, scroll
   from the bottom of the top-most visible app icon.
 - Scroll down: swipe up from bottom padding to top of top-most
   visible icon.
 - Close all apps: swipe down fom top of recyclerview instead
   of search bar.

For Launcher3, the floating flag is not fully supported yet, so
there were some layout issues which are now resolved by ignoring
the flag if the searchbar is still at the top.

Fix: 261873937
Test: Ran tests, manual
Change-Id: I7d6fc7deac630835b96fc173211ce31271152607
2023-02-02 21:05:52 -08:00
Fengjiang Li
0b3223335a Merge "[Predictive Back] Remove animation on cancel for all apps to home" into tm-qpr-dev am: c717f48a2d am: 5ae643b96e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21226631

Change-Id: I667068dc421b51927ab5d54fe971e543b482e43e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 04:31:53 +00:00
Fengjiang Li
5ae643b96e Merge "[Predictive Back] Remove animation on cancel for all apps to home" into tm-qpr-dev am: c717f48a2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21226631

Change-Id: Idca146cd31039acb86df426291274ec38f3447a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 04:02:19 +00:00
Fengjiang Li
c717f48a2d Merge "[Predictive Back] Remove animation on cancel for all apps to home" into tm-qpr-dev 2023-02-03 03:44:19 +00:00
Jon Miranda
321ec72338 Merge "Iterative improvement to the taskbar stash animation." into tm-qpr-dev am: 554c431d40 am: 195e0c9e75
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21226020

Change-Id: I615be595332472eb9aaf6df0607b00e5550d124a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 03:17:29 +00:00
Jon Miranda
195e0c9e75 Merge "Iterative improvement to the taskbar stash animation." into tm-qpr-dev am: 554c431d40
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21226020

Change-Id: I77cdf5512378cb5ba481a6eaedf6aaa10973154a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 02:50:26 +00:00
Jon Miranda
554c431d40 Merge "Iterative improvement to the taskbar stash animation." into tm-qpr-dev 2023-02-03 02:39:10 +00:00
Jon Miranda
3c76c2212a Merge "Update notification dot renderer when we update the taskbar icon size." into tm-qpr-dev am: 5903751ee3 am: 82382fc784
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21225224

Change-Id: Iec7cd640cb84417f231dd440490a6d1c78b38465
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 02:29:15 +00:00
Jon Miranda
82382fc784 Merge "Update notification dot renderer when we update the taskbar icon size." into tm-qpr-dev am: 5903751ee3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21225224

Change-Id: If372917ea9fa959faf913fa831b533ec8681e27d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 02:00:06 +00:00