Commit Graph

10118 Commits

Author SHA1 Message Date
Sebastián Franco 0c391a7df2 Merge changes from topic "cherrypick-217247494-b0lshr6mfa" into tm-mainline-prod
* changes:
  [automerge] Brighten theme-icons when in Dark mode and add dark color for taskbar 2p: 5282efddc9
  Brighten theme-icons when in Dark mode and add dark color for taskbar
2022-03-29 00:00:33 +00:00
Presubmit Automerger Backend 8846338a7c [automerge] Fix issue with camera overlapping split staging UI 2p: b8eeb41ee0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17311863

Change-Id: Ib54908a8a30c03e7e4b1b81dc6f3ad315d4dbb75
2022-03-26 00:39:32 +00:00
Jeremy Sim b8eeb41ee0 Fix issue with camera overlapping split staging UI
Fixes an issue on some devices where initiating a split in Overview would cause an icon to be placed partly under the camera cutout.

Fixed by adding some padding to FloatingTaskView#mSplitPlaceHolderView, so that it always respects the device's insets.

Fixes: 220997064
Test: Manual
Change-Id: I7270bde3320f562519ea8e36a38e49609e0d6cd7
2022-03-25 16:31:46 -07:00
Chavi Weingarten d892844f28 Merge "Replace consumeNextDraw with SurfaceSyncer" into tm-dev am: ba653b3b92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17262739

Change-Id: I6fd83d340815c131cf239f774926ab981c0a6767
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 22:25:20 +00:00
Chavi Weingarten ba653b3b92 Merge "Replace consumeNextDraw with SurfaceSyncer" into tm-dev 2022-03-25 22:08:17 +00:00
Evan Rosky 5a7d6e93af Merge "Implement switchtoScreenshot recents callback" into tm-dev 2022-03-25 21:26:12 +00:00
Evan Rosky e3e66728e4 Merge changes from topic "pip_over_recents" into tm-mainline-prod
* changes:
  [automerge] Implement switchtoScreenshot recents callback 2p: e81d9679c1
  Implement switchtoScreenshot recents callback
2022-03-25 21:26:12 +00:00
Stefan Andonian 606cc4f6f9 Update text in "get app suggestions" bottom sheet to use Google Sans am: 234889c81c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17412846

Change-Id: I5c0c1bd035bc1aea273575acc4290f213a86621a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 21:23:39 +00:00
Stefan Andonian 234889c81c Update text in "get app suggestions" bottom sheet to use Google Sans
font family.

Bug: b/211375020
Test: Verified that the font was different after setting it in the xml.
Screenshot: screenshot.googleplex.com/AEvdCXTufBnbQC5.png
Change-Id: Ie5447344b9e917648b50945414cf58562a1d0ca8
(cherry picked from commit 4f15b6cafb)
2022-03-25 19:37:22 +00:00
Tony Wickham 59d4896635 Merge "Don't recreate taskbar on rotation" into tm-dev 2022-03-25 16:14:04 +00:00
Tony Wickham 198142e7e6 Merge changes from topic "presubmit-am-30501b00e25a47e3a8031a0c6059a1ac" into tm-mainline-prod
* changes:
  [automerge] Don't recreate taskbar on rotation 2p: 3b7a391c2b
  Don't recreate taskbar on rotation
2022-03-25 16:14:04 +00:00
Nicolò Mazzucato 9c62c87ca5 Merge "Tune fold animation on top of apps" into tm-dev am: 286dd249e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17377104

Change-Id: I022e10439287f7c6d58102964d5bbd3a1d19d358
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 09:33:29 +00:00
Nicolò Mazzucato 286dd249e0 Merge "Tune fold animation on top of apps" into tm-dev 2022-03-25 09:31:10 +00:00
Vinit Nayak d31f647843 Merge changes from topic "presubmit-am-bc79a9a41aaf49ac813fd4322be9fb10" into tm-mainline-prod
* changes:
  [automerge] Hide taskbar when launcher receives nav and keyguard showing 2p: c750e3d3aa
  Hide taskbar when launcher receives nav and keyguard showing
2022-03-24 22:01:15 +00:00
Vinit Nayak 7ac2116fcc Merge "Hide taskbar when launcher receives nav and keyguard showing" into tm-dev 2022-03-24 22:01:15 +00:00
Evan Rosky 6fbe85be7d [automerge] Implement switchtoScreenshot recents callback 2p: e81d9679c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17363980

Bug: 223321653
Change-Id: Iab3eb961a0c14fc0515f4e59f239775603ff2842
2022-03-24 21:14:24 +00:00
Evan Rosky e81d9679c1 Implement switchtoScreenshot recents callback
This lets the recents animation trigger a switchToScreenshot
to avoid premature live-tile disappearance.

Bug: 223321653
Test: put app in pip, open another app, go to recents, expand pip
Change-Id: I7ddcd891978fca7e91d7d90c1c8d9b824f5652a6
2022-03-24 14:13:59 -07:00
Sebastián Franco 276cc540a2 Merge "Task thumbnail background is spilling to the front, making the BK 1px smaller to fix it" into tm-dev am: 1c11c5319c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17060224

Change-Id: I23e77efff7fb9f6905b1dd13a808dc9e784c1a51
2022-03-24 18:35:22 +00:00
Sebastián Franco 1c11c5319c Merge "Task thumbnail background is spilling to the front, making the BK 1px smaller to fix it" into tm-dev 2022-03-24 18:17:39 +00:00
Tony Wickham 35c52bc1cb [automerge] Don't recreate taskbar on rotation 2p: 3b7a391c2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17384265

Bug: 219981733
Change-Id: Ic70d6ad697dd5182579f7409999f7f74233a4345
2022-03-24 17:39:48 +00:00
Tony Wickham 3b7a391c2b Don't recreate taskbar on rotation
This was a regression due to ag/17241303, since technically the size changes when rotating (width and height swap). Now we detect that case and don't recreate, but instead propagate the new DeviceProfile via TaskbarActivityContext#updateDeviceProfile()

Test: Open an app, rotate device, ensure taskbar isn't recreated. Changing properties such as dark theme does still recreate taskbar.
Bug: 219981733
Change-Id: Ic827c8e697a284a085609ea8653d77900686306a
2022-03-24 10:35:10 -07:00
TreeHugger Robot 181f803258 Merge "Prevent removing the feedback view and callbacks when the user completes a gesture." into tm-dev 2022-03-24 12:17:42 +00:00
TreeHugger Robot e34ee57bf0 Merge changes from topic "presubmit-am-eb37b7cc8d444482bb756474cc862d14" into tm-mainline-prod
* changes:
  [automerge] Prevent removing the feedback view and callbacks when the user completes a gesture. 2p: c7dee917db
  Prevent removing the feedback view and callbacks when the user completes a gesture.
2022-03-24 12:17:42 +00:00
Nicolo' Mazzucato ff84d2bc66 Tune fold animation on top of apps
On top of apps, the fold animation is triggered only after a threshold. On Launcher, there is not threshold.

In this way, we don't show fold animation while apps might be handling table top/half_folded state.

+ timeout to finish the animation made shorter

Test: atest DeviceFoldStateProviderTest
Bug: 225185239
Change-Id: I5adf82e853af9a5dee5af41a853abb84c9926ccd
2022-03-24 11:31:51 +00:00
Hongwei Wang 9ffd7495dc Merge "Hide the Taskbar when user leaves PiP mode" into tm-dev am: ca9f9ebec5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17339827

Change-Id: If7e76daf0b5fda4be9506b47e7db9422c1c94f31
2022-03-23 22:50:16 +00:00
Hongwei Wang ca9f9ebec5 Merge "Hide the Taskbar when user leaves PiP mode" into tm-dev 2022-03-23 22:38:48 +00:00
Vinit Nayak ea034204db [automerge] Hide taskbar when launcher receives nav and keyguard showing 2p: c750e3d3aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17358924

Change-Id: I226fc5ade3d197e16479bf46c65328bc87c3fa7d
2022-03-23 21:11:32 +00:00
Vinit Nayak c750e3d3aa Hide taskbar when launcher receives nav and keyguard showing
* On large screen we receive notification shade expanded
signals even on keyguard.
* Add a check to not show taskbar if keyguard is showing

Fixes: 223465924
Test: Taskbar doesn't show on 3 button nav except
on bouncer, as expected.

Change-Id: I4a7ea14422eda13ae8571793ed7ba1a1964072d6
2022-03-23 14:09:25 -07:00
Sebastián Franco a6246b06eb Merge "Revert "Combining the Thumbnail bitmap with the background to fix background spilling in the front."" into tm-dev am: da297fb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17299099

Change-Id: I30ffda32e94e7881d65bfd44d491df8d5c5a1c02
2022-03-23 20:14:17 +00:00
Sebastian Franco 12db27fe34 Task thumbnail background is spilling to the front, making the BK 1px smaller to fix it
This change ag/17003268 was meant as a solution for b/146521490 but
it's ineficient so this other solution is simpler and more performant.

This solution only makes the background 1px smaller and that prevents
it from spilling in the Anti Aliasing.

Test: Put Telegram in recent Task (shouldn't be the first one) and you won't see a white border. Also when a task was in multitask the backgroudn should be draw.
Fix: 223761979
Change-Id: I6855e9ecce1e06f7a9311c62a038d34b04fe2398
2022-03-23 13:11:20 -07:00
Sebastián Franco da297fb0f1 Merge "Revert "Combining the Thumbnail bitmap with the background to fix background spilling in the front."" into tm-dev 2022-03-23 20:01:42 +00:00
Schneider Victor-tulias 57d709f70c [automerge] Prevent removing the feedback view and callbacks when the user completes a gesture. 2p: c7dee917db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17353319

Change-Id: I93eff85f975432d03e32c1aec3f97211759bf8a5
2022-03-23 18:15:18 +00:00
Schneider Victor-tulias c7dee917db Prevent removing the feedback view and callbacks when the user completes a gesture.
Touching the screen immediately removed the feedback view and any callbacks attached. When the user successfully completed a gesture, one of those callbacks progresses the tutorial to its next step.

Fixes: 226028473
Test: manual
Change-Id: Ic432a5b73aa4410cb0188f50a57e3df637afb52d
2022-03-23 11:08:08 -07:00
Presubmit Automerger Backend e3a8e17984 [automerge] Brighten theme-icons when in Dark mode and add dark color for taskbar 2p: 5282efddc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17003267

Bug: 217247494
Change-Id: I6c9679e4078b9f7c15eb5de422c4386a53142d32
2022-03-23 17:48:08 +00:00
Sebastian Franco 5282efddc9 Brighten theme-icons when in Dark mode and add dark color for taskbar
Bug: 217247494
Test: change between dark and light mode and transition in and out of apps
Change-Id: Ia5e38d674a56eb95a48cb1e8c2688586594a69f9
2022-03-23 10:47:52 -07:00
Tracy Zhou 7ab44c3a5b Merge "Fix thumbnail disappearing during staged split animation" into tm-dev am: f3d81b0a1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17343720

Change-Id: Ib53c016128b8c883bbcba239e002069b84aec3dd
2022-03-23 16:40:04 +00:00
Tracy Zhou f3d81b0a1c Merge "Fix thumbnail disappearing during staged split animation" into tm-dev 2022-03-23 16:06:37 +00:00
Vinit Nayak 95d4e41458 Merge "Null out mRemoteTargetHandles when swiping to home" into tm-dev am: aa2f879c55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17247804

Change-Id: I27e04a6d0fab3aa6b2b5fc17d195f9c9c6c3eafc
2022-03-23 15:11:42 +00:00
Vinit Nayak aa2f879c55 Merge "Null out mRemoteTargetHandles when swiping to home" into tm-dev 2022-03-23 14:58:19 +00:00
Tracy Zhou 67bc75a8a9 Fix thumbnail disappearing during staged split animation
Previous set the thumbnail view to be visible initially. After deciding not to do so, forgot to put the visibility statement back. Also the transform matrix needs to reset before posting new scales.

Test: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/6576df3a-6d14-4b7e-8fb2-1c0a335472e4
Fixes: 194414938
Change-Id: I25fe39ea99943a3c1e2257681df3eb379bc30e51
2022-03-22 22:01:27 -07:00
Tracy Zhou 176e4fa7da Use topComponent to get package name am: 53ad207008
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17338873

Change-Id: Ie6b7f3c13a3719809f3544ba0dcb9a812f87eaa1
2022-03-23 04:01:41 +00:00
Vinit Nayak 1d6058c2cd Null out mRemoteTargetHandles when swiping to home
* Also all null check when trying to show divider
after swipe down animation from overview

Fixes: 223946009
Test: Steps in bug no longer cause crash
Change-Id: I2c8484c37b863c4cb6aba7e274c1eb76bce92b4a
2022-03-22 20:47:54 -07:00
Hongwei Wang 808d568367 Hide the Taskbar when user leaves PiP mode
This is to prevent the Taskbar from flickering when the app settles in
full-screen mode.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dIgvinb9yEB8MYfYDx0Ijy
Bug: 218450853
Test: see video
Change-Id: I9cfb0ca151dea6951561f78798bb16bafa48eba0
2022-03-22 18:45:31 -07:00
Tracy Zhou 53ad207008 Use topComponent to get package name
task.topActivity can be null

Fixes: 226232720
Test: manual
Change-Id: I7d0c928871d01402bf41bc96514aae7854045baf
2022-03-22 17:13:52 -07:00
Tracy Zhou c1db924479 Merge "Update initial staged split UX." into tm-dev am: 8d06bb8991
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17251578

Change-Id: Ie59c24a40af87786383f1ac85c7657e68ea64652
2022-03-22 23:20:00 +00:00
Tracy Zhou 8d06bb8991 Merge "Update initial staged split UX." into tm-dev 2022-03-22 22:44:33 +00:00
TreeHugger Robot 696f10f76b Merge "Fix issue cauing the taskbar to show in the all set page of the SUW." into tm-dev am: 6c7b0f7db8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17140736

Change-Id: I093469dcbbaf3d9b2abfb7f240bdc94af939f475
2022-03-22 20:31:29 +00:00
TreeHugger Robot 6c7b0f7db8 Merge "Fix issue cauing the taskbar to show in the all set page of the SUW." into tm-dev 2022-03-22 20:25:32 +00:00
Hongwei Wang b665810d8d Merge "Add auto-enter-pip support in FallbackSwipeHandler" into tm-dev am: 1acabce45b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17300479

Change-Id: I865c39eac5d1afb46fed74d42af304eb32b320ce
2022-03-22 20:22:31 +00:00
Hongwei Wang 1acabce45b Merge "Add auto-enter-pip support in FallbackSwipeHandler" into tm-dev 2022-03-22 20:07:55 +00:00