Commit Graph

12543 Commits

Author SHA1 Message Date
TreeHugger Robot 9c43f97783 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00 am: d6578da299
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: Ieb58469aea095eb4fa154297a91be4a081c24165
2021-08-19 16:00:49 +00:00
TreeHugger Robot d6578da299 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: If0b63751d63e33b402152c6953bb4125f0c62597
2021-08-19 15:51:12 +00:00
TreeHugger Robot 70dd01be85 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev 2021-08-19 15:30:20 +00:00
Sunny Goyal 9ac600b14d Merge "Moving all widget picker tests to instrumentation tests" into sc-v2-dev am: 494bbb0b6c am: 3f869092d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15616025

Change-Id: Idc0143a73210071aac2208d12d41c79d5246204e
2021-08-19 02:12:54 +00:00
Sunny Goyal 177785eccf Moving all widget picker tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I946f29baedb2e6b29044f8df1bc73b74e9999efe
2021-08-18 15:06:53 -07:00
Sunny Goyal 6c6d6d18f1 Merge "Removing widget preview caching" into sc-v2-dev am: 7dcf197821 am: 35dd7566b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15568034

Change-Id: I0e83784e0bb5bc8afdac9d395547e4cd1fa16f4a
2021-08-18 16:46:00 +00:00
Sunny Goyal 7dcf197821 Merge "Removing widget preview caching" into sc-v2-dev 2021-08-18 16:13:22 +00:00
Lucas Dupin 482f983a7b Add depth to -1 screen
Wallpaper will zoom out as you drag the overlay

Test: manually pull overlay
Fixes: 192502999
Change-Id: I9067b70d10497d4e16a5ef601161fbedfa9307e1
Merged-In: I9067b70d10497d4e16a5ef601161fbedfa9307e1
(cherry picked from commit 87d752062e)
2021-08-18 15:34:45 +00:00
TreeHugger Robot 7a3ad90e88 Merge "Logging for Nexus home activity appearing after to-home gesture in L3." into sc-v2-dev am: a7f7c4b432 am: 433ef28f91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15602542

Change-Id: I13b2f88a69b80aa96ea896905f0da583a180cfc0
2021-08-18 11:45:50 +00:00
TreeHugger Robot a7f7c4b432 Merge "Logging for Nexus home activity appearing after to-home gesture in L3." into sc-v2-dev 2021-08-18 11:19:26 +00:00
Alex Chau 3a97c736a1 Merge "Support different task icon margin for grid tasks" into sc-v2-dev am: 2683bd7728 am: 3328b32054
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15596247

Change-Id: I59fdfa471d8f29524179517cee156baf006ee512
2021-08-18 09:08:57 +00:00
Alex Chau 2683bd7728 Merge "Support different task icon margin for grid tasks" into sc-v2-dev 2021-08-18 08:41:42 +00:00
TreeHugger Robot 7be5631a35 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99 am: bf22a7effd am: e0028c1016
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: I1a20df63eba0b9a39af9ca33c43cd721d4ca8b4b
2021-08-18 05:51:44 +00:00
TreeHugger Robot e0028c1016 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99 am: bf22a7effd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: I9afb8a7e7cf562bc5ae646421342bf86e3559420
2021-08-18 05:37:52 +00:00
TreeHugger Robot 04c4f94223 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: Ib89cd2bbe854242c87f52d2edc384ae864af01c2
2021-08-18 05:21:30 +00:00
TreeHugger Robot 8782ad4f99 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev 2021-08-18 05:09:49 +00:00
Vinit Nayak 5bfc125bde Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev am: ca1d523734 am: 7afaf2731e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15467633

Change-Id: If6bd74213f1da7a4a76e42fb4c5e44b36b14edf8
2021-08-18 01:24:56 +00:00
vadimt bc79473313 Logging for Nexus home activity appearing after to-home gesture in L3.
Utilities.IS_RUNNING_IN_TEST_HARNESS is used as a condition
for logging in the background NexusLauncher where sDebugTracing is
not set.

Bug: 192018189
Test: presubmit
Change-Id: Ib08656a12c778b7bf968532e3ba899a03031fd7b
2021-08-17 18:13:50 -07:00
Sunny Goyal ed2a55f413 Removing widget preview caching
> All previews are generated on demand when the corresponding
  header expands
> Using ItemAnimator to animate layout changes when preview loads

Bug: 196238313
Test: Manual
Change-Id: I0cb859c8443c2c536399e4063f58baecfc7416ad
2021-08-17 17:50:30 -07:00
Vinit Nayak ca1d523734 Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev 2021-08-17 23:26:53 +00:00
Vinit Nayak 17c4b33db6 Add GroupedTaskView for gestures in staged split.
* Currently only works for portrait 50/50 split
* Have gesture swipe animation flow use multiple
TaskViewSimulators, one for each app in split
* Added new APIs in shell to query for actively running
tasks to determine if we're in split screen
* Lots of UI polish needed during gesture
* Launching into staged split after live tile ends
not implemented yet.

Bug: 181704764
Change-Id: Ib90e99e1e10b19121e8709385e1334b9380d6502
2021-08-17 13:46:43 -07:00
TreeHugger Robot f8d92e0a48 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev am: 54ce7e6cf8 am: 4079cdbb74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15465222

Change-Id: I07e79c417528a08896ce07213e5476d771de545c
2021-08-17 19:55:01 +00:00
Nick Chameyev d1b2bd4b6f Merge "Add quick search bar width unfold animation" into sc-v2-dev am: caa713bc1a am: 8b7226abee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547447

Change-Id: I5e51979f6eb8d08205ee35ff49f1e6354d23f2f7
2021-08-17 19:15:27 +00:00
TreeHugger Robot 54ce7e6cf8 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev
* changes:
  Only show Taskbar Edu once (first time an app is opened).
  Adds initial Taskbar Edu implementation.
2021-08-17 19:13:31 +00:00
Nick Chameyev caa713bc1a Merge "Add quick search bar width unfold animation" into sc-v2-dev 2021-08-17 17:58:50 +00:00
Alex Chau eaa6d682d4 Support different task icon margin for grid tasks
- Focused and non focused grid now have differnt margin between icon and snapshot
- The overall margin above snapshot is still the same
- Invoke updateChildTaskOrientations when focus task changes to update the margin
- Also lowered the row spacing according to spec

Bug: 194194694
Test: manual
Change-Id: I25267bef19d5a8b1dc1cf96fc1babdc3ebc39330
2021-08-17 18:33:21 +01:00
Andy Wickham b8eac86b63 Only show Taskbar Edu once (first time an app is opened).
Bug: 180605356
Test: Manual
Change-Id: I2cc102d7ce36e0b1c2c75482e2bbb97218618e61
2021-08-17 09:57:55 -07:00
Andy Wickham 13f3ffed95 Adds initial Taskbar Edu implementation.
Currently it just pops up with one placeholder image for splitscreen.
The Next button doesn't do anything.

Screenshots:
Light: https://screenshot.googleplex.com/B27CwBcwobHTghN.png
Dark: https://screenshot.googleplex.com/48EuJZv8evd5RGW.png

Known issues:
 - Back gesture is picked up behind by the app behind the taskbar.
 - When the flag is enabled, the Edu shows up each time you open
   an app, rather than only the first time.

Bug: 180605356
Test: Manual
Change-Id: Ifba9aa59abf1501b5f8ddebb3fcc13df85f6efaa
2021-08-17 09:57:47 -07:00
Nick Chameyev 4ba48cdb8b Add quick search bar width unfold animation
Adds unfold animation to quick search bar in launcher
which changes the width of the quick search bar
from 70% to 100%.

Bug: 193795041
Test: manual
Change-Id: I8c55ca1cc5b5894847503beac8ecd8adec3e5674
2021-08-17 16:58:57 +01:00
Tony Wickham 2f245001b7 Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev am: 40f86763bc am: 8372c17e9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587788

Change-Id: I41769ca27299760614bf370135a79b094347c42d
2021-08-17 15:26:56 +00:00
Tony Wickham 40f86763bc Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev
* changes:
  Extend taskbar color to entire screen in overview
  Use WindowBounds#insets instead of WindowInsets in DeviceProfile
2021-08-17 14:52:50 +00:00
Alex Chau fbd553a947 Merge "Remove widget panel" into sc-v2-dev am: dc57b06e29 am: 6c0bd21c4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547451

Change-Id: If266743bc02e6367d881f5b85c9ef873b6bba324
2021-08-17 09:22:20 +00:00
Alex Chau dc57b06e29 Merge "Remove widget panel" into sc-v2-dev 2021-08-17 08:48:26 +00:00
Tony Wickham 635e180e56 Extend taskbar color to entire screen in overview
Only when taskbar is unstashed in apps:
- Scrim workspace with the taskbar color when opening apps and in BackgroundAppState
- Crop opening apps to above the taskbar
- Crop TaskViews to above the taskbar during gestures

If taskbar is stashed in apps, behavior is the same as before, i.e. no scrim over the wallpaper and no cropping of tasks.

Added a field DeviceProfile#taskbkarPresentInApps to distinguish these cases. LauncherTaskbarUIController and TaskbarStashController ensure this value is set appropriately.

Test: Ensure tasks don't appear behind taskbar when it's unstashed; set ENABLE_SCRIM_FOR_APP_LAUNCH = true to test the whole screen scrimming when opening an app

Bug: 196257194
Fixes: 190681228
Change-Id: I481501457a5a6d49c380feea3db3b4058e4cf3f8
2021-08-16 16:50:52 -07:00
Tony Wickham f5ce2f624d Use WindowBounds#insets instead of WindowInsets in DeviceProfile
This reports more consistently and is cheaper.

Test: Log windowBounds.insets.bottom vs windowInsets.getSystemWindowInsetBottom() and note that the former is correct after fold/unfold even though the latter starts reporting 0
Bug: 196874770
Change-Id: I41eb0ab51d3761a988e680cd6d61e40bcacf567f
2021-08-16 16:45:12 -07:00
Sunny Goyal 42384dec50 Merge "Fixing header jump" into sc-v2-dev am: 48b012b148 am: ea35a6edcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15550092

Change-Id: I78d9fdb9cd3301a614bf063e4886692a67083f2a
2021-08-16 18:46:53 +00:00
Sunny Goyal 48b012b148 Merge "Fixing header jump" into sc-v2-dev 2021-08-16 18:20:00 +00:00
Jon Miranda 26de7be984 Fix NPE when converting final screen to empty screen.
Bug: 194553613
Test: manual
Change-Id: Id29b8574964688f6f6aa96dd5b1b8a4d8b9110c0
2021-08-16 16:47:11 +00:00
Sunny Goyal 77acf12905 Fixing header jump
Linking header position to an empty entry in the recyclerView,
instead of calculating the vertical scroll position. This
allows the header to be in sync with the recyclerView scroll and
item animations

Other simplifications:
> Moving top collapse handle out of header view (it doesn't scroll)
> Removing background clipping logic from full-sheet
> Moving tab bar inside the header view

Bug: 196464142
Test: Verified on device
Change-Id: Iae5a0ae9af7ce258e1b391b8e85c5c270fe56197
2021-08-16 09:45:14 -07:00
Alex Chau f551c876e4 Merge "launcher: hide grid options for foldables" into sc-v2-dev am: 0cba30e990 am: 298db67fd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15472531

Change-Id: I82d22dcb706ca5ab2ba83a5994e801c3f369d022
2021-08-13 22:10:36 +00:00
TreeHugger Robot 219dff2349 Merge "launcher: correct the amount of padding for preview" into sc-v2-dev am: f952fd9256 am: 9f76d9d09a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547452

Change-Id: I1dd9dd360249bdc6545e53498e632a5bad977586
2021-08-13 22:07:49 +00:00
Alex Chau 1e4484669d Remove widget panel
- Remove all usage of LEFT_PANEL_ID and fixed left panel code
- For preview renderer, load screen 0 + screen 1 instead
- Added a split display specific default workspace layout, with a placeholder app to pass test before we implement page pairing(b/196376162)
- Known issue: If screenId 1 is deleted, right panel will disappear from Wallpaepr & Style because there is no screenId 1. Will be resovled after page pairing(b/196376162)

Bug: 175939730
Test: manual and TaplTestsLauncher3#testWorkSpace
Change-Id: Icac1c94165c14a49c17897c45355b6cdc4d87e91
2021-08-13 21:48:35 +01:00
Alex Chau 0cba30e990 Merge "launcher: hide grid options for foldables" into sc-v2-dev 2021-08-13 20:44:34 +00:00
TreeHugger Robot f952fd9256 Merge "launcher: correct the amount of padding for preview" into sc-v2-dev 2021-08-13 19:19:18 +00:00
Thales Lima dab1b2922c launcher: correct the amount of padding for preview
The padding on left and right should be added only on the left for left
page and only on the right for right page.

Fixes: 195410512
Test: open Wallpaper & Style and check the space between the pages
Change-Id: Ib27c632d2fb07d4708bd101e555e14e31a26ff9d
2021-08-13 18:22:26 +01:00
Thales Lima 7ec8382044 launcher: hide grid options for foldables
Some grid options are too dense for foldables (those with 5 icons), so
we are hiding them on those devices.

This also move the parsing to be done on InvariantDeviceProfile only.

Fixes: 183140646
Test: open Wallpaper & style and change app grid options
Change-Id: I771571db02709db5d0f814236060c57ce0180cd1
2021-08-13 16:07:05 +00:00
TreeHugger Robot 21cb8f7bd0 Merge "Update two panel specific launcher home icon sizing" into sc-v2-dev am: 00d0ce9b3b am: 39a93b1d8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15472539

Change-Id: I4df81aeab62eb168bb6202b2a3f806e186349b00
2021-08-13 01:41:13 +00:00
Sunny Goyal 57e0866fdd Fixing ModelPreload cancelling existing load
When a model preload call was made while the loader task is running
(eg: on enabling/disabling icon theme, Launcher reloads and then
launcher preview start a model-preload), it would cancel the original
loader and then start a new loader with empty callbacks. So the
model indeed get loaded, but the original callbacks never got notified
of it.

> Instead we only start preload if an existing task is not running.
> Also when preloading, we use existing callbacks, instead of using
  empty callbacks

Bug: 193851085
Bug: 195155924
Test: Verified repro steps
Change-Id: I0a96310be8489756f364aa2a12e4345e1418733d
2021-08-12 21:33:33 +00:00
TreeHugger Robot 4e9ea58712 Merge "Clean up test logging and ScreenRecord" into sc-v2-dev am: 662af98956 am: 3c7c23aa02
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15542317

Change-Id: I98e7524b37523af64d992768ee073293e748eb71
2021-08-12 18:35:46 +00:00
Andras Kloczl 30fe9152d5 Update two panel specific launcher home icon sizing
Test: manual
Bug: 191879424
Change-Id: I4f51616004d78036ad801298bb5ba72af8de3f30
2021-08-12 18:46:01 +01:00