Commit Graph

74616 Commits

Author SHA1 Message Date
Tony Wickham
35b08fe4b2 Remove obsolete binder calls to TaskTransitionSpec
Fixes: 334312256
Flag: none
Test: manual (no visual regression)
Change-Id: Ie20dc8d4bb0c85a8a256b001fbb92405679618a8
Merged-In: Ie20dc8d4bb0c85a8a256b001fbb92405679618a8
(cherry picked from commit a179a77e09)
2024-05-03 21:59:24 +00:00
Hongwei Wang
a089315793 Merge "Add debugging information on PiP content overlay" into 24D1-dev 2024-05-03 19:57:50 +00:00
Tracy Zhou
098c477a04 Merge "Add ime back button logic to the init block of NavbarButtonsViewController" into 24D1-dev 2024-05-03 18:05:55 +00:00
Vinit Nayak
afb770c737 Merge "Allow single root candidate for app pair launch for pip edge case" into 24D1-dev 2024-05-03 06:30:43 +00:00
Tracy Zhou
7b4cd90332 Add ime back button logic to the init block of NavbarButtonsViewController
Fixes: 338320015
Test: Run adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity. Make sure the back key shows by default but hides when IME renders back arrow.
Change-Id: I8baeb10d3f5b13c3bac084872d77d881c1513733
(cherry picked from commit 4b43cfbc04)
2024-05-03 06:24:59 +00:00
Vinit Nayak
55270a9f70 Allow single root candidate for app pair launch for pip edge case
* Shell will launch single task if requested split apps have one of them
already in Pip
* Create a separate method to set animation for launching from the
appPair icon on workspace
* Reuse the animation method for launching an AppPair icon from taskbar
by specifying which windowing mode to look for if we're launching the
actual split pair vs just one in fullscreen

Bug: 323089902
Test: Launches fine visually
Change-Id: I415343a48e980afd7f4e511558d350cf15b97ca1
Merged-In: I415343a48e980afd7f4e511558d350cf15b97ca1
2024-05-02 22:49:25 +00:00
Hongwei Wang
cdb9690a87 Add debugging information on PiP content overlay
Added the reason for creating the overlay. Updated
SwipePipToHomeAnimator constructor also due to the fact the source rect
hint from Builder class is never empty.

Bug: 330488822
Test: manually, follow the reproduce path
Flag: NA
Change-Id: Id98ce799d7c96fff3279c0df0fa49084a49d563a
2024-05-02 17:01:17 +00:00
Tracy Zhou
58a018746d Do not hide nav bar on the homescreen from setup
FLAG_STASHED_SMALL_SCREEN is not updated after setup UI finishes.

Fixes: 337738795
Test: Finish setup, swipe home in folded, and observe home handle is visible.
Change-Id: I297e3b44f49f94ab5a1b9fe5ff16ff64c6cf2c0a
(cherry picked from commit ee67a48d60)
2024-05-01 00:08:47 +00:00
Saumya Prakash
747e3fd949 Merge "Change colors shown in Gesture Nav Tutorial for light mode" into 24D1-dev 2024-04-29 17:43:39 +00:00
Treehugger Robot
22ce78870d Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-29 16:32:33 +00:00
Bill Yi
9e2f701fb8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide87625565398a8612ea04bc4d9543b55a8fb5b0
2024-04-28 18:40:45 -07:00
Bill Yi
8f16a69b9a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1da48f1015cff2f9729ecb9a1571843ebada07ec
2024-04-28 18:39:11 -07:00
Treehugger Robot
fe2e1a3672 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-26 22:58:48 +00:00
Saumya Prakash
56ba00554a Change colors shown in Gesture Nav Tutorial for light mode
We use a second set of colors to ensure that the text is more visible in light mode for the gesture navigation tutorial.

Fix: 318471359
Test: Run the gesture navigation tutorial in light mode and dark mode
Flag: LEGACY ENABLE_NEW_GESTURE_NAV_TUTORIAL ENABLED
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:58aacfad2b478c26d73276ba78d5d3388ec5ddc2)
Merged-In: Ib83fdcce1d2bd057ca4bf3258cc81fda704bf149
Change-Id: Ib83fdcce1d2bd057ca4bf3258cc81fda704bf149
2024-04-26 20:33:53 +00:00
Vinit Nayak
4dfda85f2a Merge "Revert^2 "Launch split tasks at beginning of animation instead of the end"" into 24D1-dev 2024-04-26 18:18:56 +00:00
Saumya Prakash
edc8a0a967 Merge "Increase the delay in between gesture tutorials" into 24D1-dev 2024-04-26 18:05:21 +00:00
Vinit Nayak
242b67eda8 Revert^2 "Launch split tasks at beginning of animation instead of the end"
This reverts commit fb092a9a6c.

Reason for revert: b/333937249

Change-Id: I77bd6c0d2fbe2f2dad074e8e0e741b50d4d7c204
(cherry picked from commit a6bf5a0014)
2024-04-25 23:11:26 +00:00
Bill Yi
f0fa15f3d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3b1a51d5ad523eb706c9776a73b9618ea97b6db7
2024-04-25 15:56:56 -07:00
Saumya Prakash
436f342b5a Merge "Only run search edu when enabled, also make code more generic." into 24D1-dev 2024-04-25 22:10:32 +00:00
Saumya Prakash
194403681b Only run search edu when enabled, also make code more generic.
We only need to run the Search edu if it is enabled on devices. The code
itself is also made more generic in terms of method and variable names.

Fix: 330401405
Test: Enable and disable the search function and check whether the edu tooltip shows
up for each specific use case.
Flag: ACONFIG com.android.launcher3.enable_taskbar_pinning NEXTFOOD

Change-Id: I1cea3ee56922c0b47ae7e8379aad4b36570daa17
Merged-In: I1cea3ee56922c0b47ae7e8379aad4b36570daa17
2024-04-25 18:37:02 +00:00
Brian Isganitis
ac43b02549 Merge "Reset allAppsVisible if folding to phone upon recreateTaskbar." into 24D1-dev 2024-04-24 21:58:49 +00:00
Tracy Zhou
efec76c861 Merge "Revert "Hide task bar when folding before the new config renders the correct task bar"" into 24D1-dev 2024-04-24 20:09:38 +00:00
Sukesh Ram
31b7966a6d Merge "Fix Taskbar Background Visibility After Entering IME then Overview." into 24D1-dev 2024-04-24 18:08:28 +00:00
Tracy Zhou
9188c1b45b Revert "Hide task bar when folding before the new config renders the correct task bar"
This reverts commit dfb334f1e1.

Reason for revert: A bunch of WM fixes are in (b/291562764)

Change-Id: I9d08dab976cda112f802ee91256c09ef2026a01f
(cherry picked from commit 4dbac6caa9)
2024-04-24 16:14:30 +00:00
Alex Chau
f7555925c1 Add stub task when matching TaskView is grouped while runningTasks is not grouped
- Completely rewrote shouldAddStubTaskView to simplify the logic

Fix: 333844287
Test: With 2 split tasks, unsplit one, go to Overview, launch the other split, unsplit, go to Overview
Flag: None
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:492965326e7391c8427b6fca7875508e7a957b49)
Merged-In: I2f33f91956d485957cedf43ccd684f16d42803be
Change-Id: I2f33f91956d485957cedf43ccd684f16d42803be
2024-04-24 07:08:50 +00:00
Brian Isganitis
0db4a1aac5 Merge "Support toggling Taskbar All Apps with 3P Launcher." into 24D1-dev 2024-04-23 22:13:11 +00:00
Treehugger Robot
8114a7ffb5 Merge "Reland slow gesture callback handling" into 24D1-dev 2024-04-23 17:47:37 +00:00
Sukesh Ram
36ce5c8840 Fix Taskbar Background Visibility After Entering IME then Overview.
Fixed issue whereby taskbar background disappears as expected when the IME switcher is present, but does not appear again if the overview button is pressed after this state.

Flag: NONE
Test: Manually tested in Felix Landscape mode.
Bug: 297472865
Change-Id: If1074b28870c794db8a87dd6cd59f9656dc7c15d
(cherry picked from commit 5c34cf2d06)
2024-04-23 17:41:25 +00:00
Jagrut Desai
7a5aeb3544 Merge "Customize BubbleTextView for Taskbar Icon Size" into 24D1-dev 2024-04-23 16:17:07 +00:00
Schneider Victor-tulias
c30642b97f Reland slow gesture callback handling
Now that b/329324086 has been fixed, we can be more certain that launcher always gets a signal to clean up from WM.

- Relanding original fix for b/285636175 with some additional error checking
- We will now check whether the recents animation start is pending on ACTION_UP
- We will now block entire swipes to prevent sending additional inputs an input consumer while the recents animation start is pending
- We will now only stop blocking inputs on ACTION_DOWN

Flag: LEGACY ENABLE_HANDLE_DELAYED_GESTURE_CALLBACKS TEAMFOOD
Bug: 329324927
Fixes: 285636175
Test: added a delay in RecentsAnimationCallbacks.onAnimationStart and attempted several rapid gestures
Change-Id: I9805114da34bf44e6b28c2a8a665e4cca88904c2
(cherry picked from commit f3f0e28762)
Merged-In: I9805114da34bf44e6b28c2a8a665e4cca88904c2
2024-04-23 15:36:01 +00:00
Sebastián Franco
979cc8c8c0 Merge changes from topic "cherrypicker-L13500030003200477:N52900030052341505" into 24D1-dev
* changes:
  If the user only had the default db, then migrate to the new default
  Set default grid when doing a backup and restore
  Making 2 flags read only since they are used on backup and restore
  In the case the gird migration goes to a taller grid keep the grid configuration
  Revert^4 "Removing all restored backups except one so we don't have old backups"
  Add testing for GridMigration.
  Refactor migrateGridIfNeeded to pass the grid states and make it easier for unit testing
2024-04-22 23:55:10 +00:00
Jagrut Desai
b286a78304 Merge "Adjusting Taskbar Icons for larger display size" into 24D1-dev 2024-04-22 22:44:50 +00:00
Brian Isganitis
86b5755178 Reset allAppsVisible if folding to phone upon recreateTaskbar.
For taskbar unification, we should reset this bit to false when folding
into phone orientation. Otherwise, we will reinit Taskbar AllApps over
the phone UI which is unexpected behavior.

Test: Manual
Flag: N/A
Fix: 293379641
Change-Id: I53c38c8b4df477191be3c21b7750c55a71c7336f
(cherry picked from commit 6d63e7796d)
Merged-In: I53c38c8b4df477191be3c21b7750c55a71c7336f
2024-04-22 22:31:17 +00:00
Brian Isganitis
c383204356 Support toggling Taskbar All Apps with 3P Launcher.
Taskbar All Apps exists regardless of the default launcher. Thus, we can
toggle it on large screen devices. This CL ties registering the system
action to default launcher and taskbar's enablement.

Test: adb shell input keyevent 117
Test: AllAppsActionManagerTest
Flag: LEGACY ENABLE_ALL_APPS_SEARCH_IN_TASKBAR ENABLED
Fix: 317259709
(cherry picked from commit c113b277e6)

Change-Id: Ib4d029617442ebf0f637f7e146aa5d001a065515
Merged-In: I26f0ed9e921beac762f3f9e6aaceb1002ad4801a
2024-04-22 22:16:28 +00:00
Jagrut Desai
147aa374c1 Adjusting Taskbar Icons for larger display size
Bug: 323948193
Test: Manual
Flag: NONE

Change-Id: I0bdfcaebf3de050ac850fe42c061c82ffebdb7c2
(cherry picked from commit e6f349b3dd)
2024-04-22 20:35:22 +00:00
Saumya Prakash
1e8961c3f8 Increase the delay in between gesture tutorials
The time in between each gesture's finish page and the start of the next
gesture tutorial was too short. We increased the time we spend on the
finish page by 1000 ms based on this feedback.

Fix: 293967263
Test: Run through the gesture tutorial and note the longer pause in
between each gesture
Flag: LEGACY ENABLE_NEW_GESTURE_NAV_TUTORIAL ENABLED
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:959dff122049349e25cfec82e78c6ae6db9fa7d6)
Merged-In: I2c22e19dff91ac720877e596df90efe7f3cfcd80
Change-Id: I2c22e19dff91ac720877e596df90efe7f3cfcd80
2024-04-22 18:05:57 +00:00
Sebastian Franco
1edaf75ad9 If the user only had the default db, then migrate to the new default
We also check if the new default is bigger than or equal to the
previous one.

Flag: ACONFIG enable_grid_migration_fix enabled
Flag: ACONFIG enable_narrow_grid_restore enabled
Bug: 325286145
Bug: 325285743
Test: BackupAndRestoreDBSelectionTest.kt
Test: GridMigrationTest.kt
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:12678a536b747279bb7ce04557696aae6725ce33)
Merged-In: I98315a4e4c112ca96a74200dd76016803dfaf820
Change-Id: I98315a4e4c112ca96a74200dd76016803dfaf820
2024-04-22 16:15:55 +00:00
Sebastian Franco
7b46e1145c Set default grid when doing a backup and restore
When restoring from a tablet because phones don't have
the same table some issues can ocure because we setup a
non valid grid, the correct thing is to setup a default.

Bug: 325285743
Fix: 332964986
Flag: ACONFIG narrow_grid_restore enabled
Test: BackupAndRestoreDBSelectionTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:df7d2b08614adfd19245577724588307ff439a7d)
Merged-In: I28bf02e83dddf5ae84818d879a5e21600eddf67e
Change-Id: I28bf02e83dddf5ae84818d879a5e21600eddf67e
2024-04-22 16:15:41 +00:00
Sebastian Franco
8c3d830b39 Making 2 flags read only since they are used on backup and restore
The flags are narrow_grid_restore and grid_migration_fix.

Flag: ACONFIG enable_grid_migration_fix enabled
Flag: ACONFIG enable_narrow_grid_restore enabled
Bug: 325286145
Bug: 325285743
Test: BackupAndRestoreDBSelectionTest.kt
Test: GridMigrationTest.kt
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5ea61960ab4b0da02aeb5dd36968c2ef923709aa)
Merged-In: Ia6a439553c3c5098115144eae532342ce73be4f2
Change-Id: Ia6a439553c3c5098115144eae532342ce73be4f2
2024-04-22 16:15:30 +00:00
Sebastian Franco
f5a2e75100 In the case the gird migration goes to a taller grid keep the grid configuration
For example going from 4x5 to 4x6 it will keep the 4x5 configuration
which fits in the 4x6 grid.

Also, it fixes GridMigrationTest which was flaky because of
how it sorted arrays.

Bug: 325286145
Flag: ACONFIG grid_migration_fix disabled
Test: NA
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2eaf15c37a051fd17c18c4443a8bd19d39057bf0)
Merged-In: I6063e3c303320096f7429a3b1d909e107d2ef2a0
Change-Id: I6063e3c303320096f7429a3b1d909e107d2ef2a0
2024-04-22 16:15:13 +00:00
Jagrut Desai
2f8baab403 Customize BubbleTextView for Taskbar Icon Size
Test: Presubmit, manual
Flag: NONE
Bug: 322734668
Change-Id: I50503a45cdf43abed942a846c2517f49124c75e5
(cherry picked from commit 8fbdf51d18)
2024-04-22 16:10:06 +00:00
Bill Yi
147885412c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e8e27e5eac15277cc4416ffb0302897b02e5a75
2024-04-21 18:48:24 -07:00
Sebastián Franco
87fbc2e02e Revert^4 "Removing all restored backups except one so we don't have old backups"
To prevent the error I introduce the method restorePreviousState().

This reverts commit 1234090589.

Reason for revert: Fixing presubmit breaks

Bug: 325285743
Flag:  ACONFIG narrow_grid_restore disabled
Test: BackupAndRestoreDBSelectionTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ad46eb75f4c239321b1e8f03062dd7599cdc9495)
Merged-In: I63666c29eb91dada4243af019ab0538c40bc0f78
Change-Id: I63666c29eb91dada4243af019ab0538c40bc0f78
2024-04-19 18:27:07 +00:00
Treehugger Robot
a692409e5b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-19 16:00:28 +00:00
Bill Yi
ea696564d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I69611a4fef3c988a5639cb21110f608d38d07897
2024-04-18 23:15:13 -07:00
Bill Yi
46a33d45c0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6f2f4284cf13655c06901f962e97de9c74a88bfe
2024-04-18 23:13:46 -07:00
Anushree Ganjam
3a3978cb7a Merge "Add FastScrollSectionInfo with "info icon" when work educard exists." into 24D1-dev 2024-04-18 03:28:40 +00:00
Sebastian Franco
6aa4389285 Add testing for GridMigration.
Bug: 325286145
Flag: ACONFIG grid_migration_fix disabled
Test: GridMigrationTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:851b1f3b1c103b28d6df6653693ee132c92086e7)
Merged-In: I49fd32be895f3a05204775373b9eec62d9026f3b
Change-Id: I49fd32be895f3a05204775373b9eec62d9026f3b
2024-04-18 01:17:24 +00:00
Sebastian Franco
0312ec60a3 Refactor migrateGridIfNeeded to pass the grid states and make it easier for unit testing
No-op change

Bug: 325286145
Flag: NA
Test: compiling
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c3ffd41ff0f150ea91ad2a324dd4613b7d0cd89f)
Merged-In: I703c08059b81e20111c17a142dc54335f18a5a87
Change-Id: I703c08059b81e20111c17a142dc54335f18a5a87
2024-04-18 01:17:18 +00:00
fbaron
6fba6cdb85 Make hotseat column span responsive
Flag: NONE
Test: DeviceProfileDumpTest, DeviceProfileAlternativeDumpTest, HomeScreenImageTest
Bug: 325084912
Change-Id: Ifa9e8066662a1ab053f66b8800b739d813d2dab8
(cherry picked from commit e4b0b71faa)
2024-04-17 17:56:58 +00:00