Commit Graph

16725 Commits

Author SHA1 Message Date
Samuel Fufa 8aecc9ac36 Merge "[Work] Fix work apps showing in personal tab" into sc-v2-dev 2021-09-09 01:09:01 +00:00
Vinit Nayak d1a70eeb75 Slight polish for split screen gesture animation
* Divider bar dimensions manually calculated since
the leash that is provided has bounds larger than
the space that is visually shown between the two split
apps

Bug: 181704764
Test: Swipe up on large and normal screen,
w/ and w/o home rotation enabled

Change-Id: I1fde053151d47c6ce3e11f16f8ae4a153d273871
2021-09-08 17:39:49 -07:00
TreeHugger Robot 63db45c1d9 Merge "Fix crash when Workspace item is added to two panel home" into sc-v2-dev am: fd744975cc am: 1bde92ca95
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15786971

Change-Id: Icc319f23eab7545c196e2b95a5c27e428a63cf7b
2021-09-08 22:31:40 +00:00
TreeHugger Robot fd744975cc Merge "Fix crash when Workspace item is added to two panel home" into sc-v2-dev 2021-09-08 22:09:53 +00:00
Tony Wickham adc40c11fb Don't allow starting DeveloperOptionsFragment on non-debug builds am: a343699760 am: 85435ff751 am: 81aee5e024
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15787659

Change-Id: Ia70df34fcf2715fcb1f8d9459bb7201521542583
2021-09-08 22:03:00 +00:00
Samuel Fufa 564e9ca223 [Work] Fix work apps showing in personal tab
The problem here is that we are tracking hasWorkApps and usingTabs using the same value.
 This leads to work/personal apps showing together when clearing search since mUsingTabs is overridden to false on setLastSearchQuery and later used to determine if tabs should show.
Bug: 198546279
Test: Manual

Change-Id: I7df5d65472703bedcc9dd688847d9ebd146d5f61
2021-09-08 15:02:24 -07:00
Tony Wickham 81aee5e024 Don't allow starting DeveloperOptionsFragment on non-debug builds am: a343699760 am: 85435ff751
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15787659

Change-Id: Ic958cdc3ce8c7e478d6f4eefeec5bb1f87c9ede2
2021-09-08 21:49:46 +00:00
Tony Wickham 9ac2800849 Don't allow starting DeveloperOptionsFragment on non-debug builds am: a343699760
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15787659

Change-Id: I268204c3f0597fb4609437a94efdffcdfdb6b4f0
2021-09-08 21:28:46 +00:00
Tony Wickham 534bd2205b Add ability to start DeveloperOptionsFragment with filter pre-applied
Repurposing EXTRA_FRAGMENT_ARG_KEY to set an initial filter.

Test: adb shell 'am start -n com.google.android.apps.nexuslauncher/com.android.launcher3.settings.SettingsActivity --es ":settings:fragment" "com.android.launcher3.settings.DeveloperOptionsFragment" --es ":settings:fragment_args_key" "Education"'
Bug: 199299382
Change-Id: I032f7ffc373daed51c8d381f3cacf722fb3fb198
2021-09-08 13:51:29 -07:00
Tony Wickham 281786a841 Add option to reset Onboarding Flows in Developer Options
Test: Go to Developer Options, reset Hybrid Hotseat Education, then long press on a predicted hotseat item and ensure edu toast appears
Bug: 199299382
Change-Id: I384d7af08fc8b842bc3a1333b9f8017cca3680e6
2021-09-08 13:51:25 -07:00
Alex Chau 817e0fa812 Fix crash when Workspace item is added to two panel home
Test: Run com.android.launcher3.ui.widgetRequestPinItemTest#testPinShortcut tests
      and com.android.launcher3.ui.TaplTestsLauncher3#testWorkspace
Bug: 199150824
Change-Id: I8550970806eb0b9bfc246d4fb76ffbd0415b7647
2021-09-08 21:01:10 +01:00
TreeHugger Robot 8d8bde3b67 Merge "Fixing itemInfoMatcher not working for folders" into sc-v2-dev am: 8d9eaf0c7d am: 20e9383d29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15786950

Change-Id: I80e913d577d05201f80555cffd3f08d9ecccddc7
2021-09-08 19:24:21 +00:00
TreeHugger Robot 8b91fdfffb Merge "Moving roboelectic tests to instrumentation tests" into sc-v2-dev am: b44b73ee3a am: 9f17e2e6c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15778398

Change-Id: I851ad5485e6cbff4d6207112b1420df165a311b1
2021-09-08 19:19:32 +00:00
Tony Wickham a343699760 Don't allow starting DeveloperOptionsFragment on non-debug builds
Test: adb shell am start -n com.google.android.apps.nexuslauncher/com.android.launcher3.settings.SettingsActivity --es ":settings:fragment" "com.android.launcher3.settings.DeveloperOptionsFragment"
Fixes: 199302659
Change-Id: I33dd4db3444c0ccabbe4dc3bb80db4167aec6a03
2021-09-08 19:11:59 +00:00
TreeHugger Robot 8d9eaf0c7d Merge "Fixing itemInfoMatcher not working for folders" into sc-v2-dev 2021-09-08 19:10:20 +00:00
TreeHugger Robot b44b73ee3a Merge "Moving roboelectic tests to instrumentation tests" into sc-v2-dev 2021-09-08 18:40:37 +00:00
Sunny Goyal 266905160a Fixing itemInfoMatcher not working for folders
Bug: 197686628
Test: Manual
Change-Id: Ie43a55be6cce4bc73e38525388d744a649dbc740
2021-09-08 12:29:13 -04:00
Sunny Goyal 3e9a29c4d6 Moving roboelectic tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I197bc47181308bb0b79f3815a892b733abbcd1fd
2021-09-08 10:23:30 -04:00
Thales Lima 31a2afef49 Merge "launcher: show smartspace date card on Wallpaper & style" into sc-v2-dev am: 9223c1e27c am: 4f347ef3cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15726603

Change-Id: I2a0e1b1c880c88a0d1940490e5a1c1276790e10c
2021-09-08 10:29:19 +00:00
Thales Lima 9223c1e27c Merge "launcher: show smartspace date card on Wallpaper & style" into sc-v2-dev 2021-09-08 09:58:11 +00:00
TreeHugger Robot dab125fcc3 Merge "Prevent NPE when init device profile" into sc-v2-dev am: 11438429a8 am: 68e7b1a315
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15781507

Change-Id: I23c1ef0490784d2ff8452ecc7714c841d76d210d
2021-09-08 02:46:25 +00:00
TreeHugger Robot 11438429a8 Merge "Prevent NPE when init device profile" into sc-v2-dev 2021-09-08 02:14:31 +00:00
Jerry Chang bfac46a30c Prevent NPE when init device profile
Fix: 198871283
Test: manual
Change-Id: Ie303ff4f3dc05f419e80038e41e195dc874ba40a
2021-09-08 08:34:39 +08:00
TreeHugger Robot 6b37bffd5c Merge "Fixing leak in model tests" into sc-v2-dev am: d213914214 am: 8dbae16629
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15777966

Change-Id: I210bc76082112c716432dcc00ffe398722a1fe48
2021-09-07 22:06:32 +00:00
TreeHugger Robot d213914214 Merge "Fixing leak in model tests" into sc-v2-dev 2021-09-07 21:31:34 +00:00
Tony Wickham 6bc2bc1a02 Merge "Fix wallpaper picker crash if folder is in hotseat" into sc-v2-dev am: 437e44810d am: 15c653c65c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15779378

Change-Id: Idcee3d0543efaad86a0dbd0409ed5f1596971369
2021-09-07 21:22:59 +00:00
Tony Wickham 437e44810d Merge "Fix wallpaper picker crash if folder is in hotseat" into sc-v2-dev 2021-09-07 20:52:44 +00:00
Samuel Fufa 832043d1c9 Merge "[Search] Update AllApps header protection" into sc-qpr1-dev 2021-09-07 19:57:31 +00:00
Sunny Goyal b45aef3f1c Fixing leak in model tests
> InstallSessionTracker is not released immediately causing large memory objects
  being held by tests

Bug: 198719724
Test: Presubmit
Change-Id: I1d19a2a498a9f255077818dc7d78422367ec1749
2021-09-07 15:34:48 -04:00
Tony Wickham 302eff9c84 Fix wallpaper picker crash if folder is in hotseat
Only use mWorkspaceScreens if info.container == CONTAINER_DESKTOP, otherwise assume it's in mHotseat instead.

Test: have a folder in hotseat, open wallpaper picker and can see the preview and set wallpaper
Fixes: 199179718
Change-Id: I6f1dbd8dc387783bb8b76e2bc469508c079a85f8
2021-09-07 12:04:47 -07:00
TreeHugger Robot f0270040b7 Merge "Fix crash when hotseat icon is dragged onto Workspace" into sc-v2-dev am: ce10de7964 am: fef84dd5ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15771582

Change-Id: I99ee908d056147d354dce088e9eb751da3ae6f9f
2021-09-06 17:30:24 +00:00
Andras Kloczl d888e77145 Fix crash when hotseat icon is dragged onto Workspace
Test: manual
Bug: 198820019
Change-Id: I53bb858feb7aad45472803b133ef3d026dd9f319
2021-09-06 16:43:01 +01:00
TreeHugger Robot 316ff9e86f Merge "Remove widget panel related leftover workspace items" into sc-v2-dev am: 69fd5cb959 am: 29ad430f36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15763353

Change-Id: Ice35fd5a9ca28916a33059ff776ff06db9acef02
2021-09-06 13:05:54 +00:00
TreeHugger Robot 69fd5cb959 Merge "Remove widget panel related leftover workspace items" into sc-v2-dev 2021-09-06 12:39:54 +00:00
Alex Chau a643d926f1 Fix getPagesToBindSynchronously returning wrong page pairs am: 62f129b878 am: 5644b4f5fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15754330

Change-Id: Ia7e9f4b5861e60baf7859378c3634fb5c075e7bc
2021-09-06 11:42:23 +00:00
Andras Kloczl 929e3a2742 Remove widget panel related leftover workspace items
Upgrade launcher DB version and remove items with
widget panel IDs from the database.

Test: follow test instructions (in CL comment)
Bug: 198254728
Change-Id: I077a5f70ee93b7eca738b38f6b0e788d49f7ce70
2021-09-06 11:58:32 +01:00
Alex Chau 62f129b878 Fix getPagesToBindSynchronously returning wrong page pairs
- Use WorkSpace.getPagePair instead for accurate value

Bug: 191657065
Test: manual
Change-Id: I584f1705fb5ed2f0d2bd776eb6cf4f60c69238ac
2021-09-06 10:58:48 +01:00
András Klöczl 2a93252733 Merge "Add two extra empty pages on two panel launcher home" into sc-v2-dev am: 4926bf706a am: e19b1fb4a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15727162

Change-Id: I7b7d7f9110dff58ea54d5bce7ae1f28e5ba91e82
2021-09-05 21:33:49 +00:00
András Klöczl 4926bf706a Merge "Add two extra empty pages on two panel launcher home" into sc-v2-dev 2021-09-05 21:05:53 +00:00
Andras Kloczl 408a54f2e7 Add two extra empty pages on two panel launcher home
Add a new screen ID for the second extra empty page
and add that new screen as well when the existing
extra empty page is added so that users can put items
on both sides of Workspace.

Test: manual
Bug: 196376162
Change-Id: I0b4f2e818407a10d8a7c032788a7bd7a61267779
2021-09-05 22:03:07 +01:00
TreeHugger Robot 5ea5f90397 Merge "[Work] Fix duplicate work button issue" into sc-qpr1-dev 2021-09-04 06:36:28 +00:00
TreeHugger Robot 317e7ac796 Merge "Disable FolderNameEditText on Taskbar" into sc-v2-dev am: eb5f5f7807 am: de88f56fc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15756862

Change-Id: I38831495981999a8a0676b7c900377dfe1db248c
2021-09-03 23:24:08 +00:00
TreeHugger Robot eb5f5f7807 Merge "Disable FolderNameEditText on Taskbar" into sc-v2-dev 2021-09-03 23:00:33 +00:00
Tony Wickham d345751849 Disable FolderNameEditText on Taskbar
Test: Can rename folder on home screen, but tapping folder name in taskbar does nothing
Bug: 180051157
Change-Id: Ief19805683f754995baf24d7f41f3979841d5bd3
2021-09-03 12:50:15 -07:00
Nick Chameyev d36b9916af Merge "Add taskbar icons unfold animation" into sc-v2-dev am: 6b53e3101e am: 4ba84e5343
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15685200

Change-Id: I3b9b38342884e5623c320496496717f5510f3ae0
2021-09-03 11:53:06 +00:00
Nick Chameyev 6b53e3101e Merge "Add taskbar icons unfold animation" into sc-v2-dev 2021-09-03 11:19:22 +00:00
Nick Chameyev 4dd4159fdc Add taskbar icons unfold animation
Adds 'move from center' animation for taskbar icons when
unfolding foldable devices.

Moves unfold transition progress provider from quickstep
launcher activity to TouchInteractionService to widen
the scope when this provider is available to cover
both launcher activity and taskbar.

Launcher activity and taskbar get their own instances
of unfold transition progress provider using
ScopedUnfoldTransitionProgressProvider wrapper.
This wrapper allows to get transition progress provider
that emits events only when clients are ready to handle them.

Bug: 193794563
Test: manual
Change-Id: I27581bd4e145a74f526bf60f2a545e56ded322f9
2021-09-03 10:25:52 +01:00
TreeHugger Robot a33bd8dcb6 Merge "Enable staged split for sc-v2" into sc-v2-dev am: b9e08f5773 am: bf552f4d1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15685961

Change-Id: I26ad13f2806047bffda5152857f644f1561586ff
2021-09-02 23:14:39 +00:00
TreeHugger Robot b9e08f5773 Merge "Enable staged split for sc-v2" into sc-v2-dev 2021-09-02 23:00:29 +00:00
Vinit Nayak db2a89d2ec Enable staged split for sc-v2
Bug: 181704764

Change-Id: Id4b0d8a2e3cc110a6aad5f33e29bc6f54c7e3c44
2021-09-02 21:55:26 +00:00