Commit Graph
87505 Commits
Author SHA1 Message Date
mpodolian 647266f298 Preserve bubble bar state.
Added logic to save and then restore existing bubbles in the
TaskbarSharedState object.

Bug: 375482371
Test: Manual. Switch between pinned and unpinned taskbar. Video:
http://recall/-/gx8ASgewUeUS3QYohfrd1J/d8hVHxksAokx85J8P7etoC
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I34f580f1c652859f427385edc0ccadd447e1400f
2024-10-31 11:50:46 -07:00
Wen-chien Wang 71ec86e398 Merge "Add margins to KQS view that is triggered from transient taskbar" into main 2024-10-31 18:06:49 +00:00
Mady Mellor 886387fd58 Merge "Fix an issue where the overflow wouldn't show if the flag was disabled" into main 2024-10-31 17:18:28 +00:00
Treehugger Robot 2891d5cb47 Merge "Add listener to update taskInfo when task change via transition" into main 2024-10-31 16:30:42 +00:00
Jordan Silva 2627657ab6 Add listener to update taskInfo when task change via transition
This change ensures the task information in TopTaskTracker stays updated with any task modifications. For instance, switching a task between freeform windowing and fullscreen will now update in TopTaskTracker, and consequently, in the RecentTasksList used by RecentsModel and RecentsView. This resolves a previous bug where switching a freeform task to fullscreen wasn't reflected, causing the new Fullscreen task and an incorrect DesktopTask state to display in the Overview.

Fix: 356355595
Flag: com.android.window.flags.enable_task_stack_observer_in_shell
Test: Manual.
Change-Id: Ib4a6eb8ea6abd21903018b05186c516511526746
2024-10-31 16:29:34 +00:00
Liran Binyamin 3955e224be Merge "Handle new bubble notification during animation" into main 2024-10-31 13:56:06 +00:00
Bill Yi 0c9dc91394 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2b760d662d7d2b00fd7f3f645dd84b682c2c3842
2024-10-30 18:31:35 -07:00
renovate[bot] 5f05716bf4 fix(deps): update dependency androidx.core:core-ktx to v1.15.0 (#4955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 09:31:21 +08:00
renovate[bot] 4871e9974e fix(deps): update dependency androidx.constraintlayout:constraintlayout to v2.2.0 (#4954)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 09:31:13 +08:00
renovate[bot] ca967084ab fix(deps): update androidx.lifecycle to v2.8.7 (#4953)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 09:31:04 +08:00
Android Build Coastguard Worker 8b432e129c Snap for 12580585 from 04cac2fc6a to 25Q1-release
Change-Id: I1f11869f32a724495f9dd992eeaa30fc8eae6483
2024-10-30 23:23:35 +00:00
Treehugger Robot 9486f5b455 Merge "OneGrid Grid Option Updates" into main 2024-10-30 22:06:11 +00:00
Holly Jiuyu Sun 5cf9dd0840 Merge "[clean-up] Clean up Quick Launch V2 and V1." into main 2024-10-30 22:05:41 +00:00
Liran Binyamin 0242d124c2 Handle new bubble notification during animation
When a new bubble notification is pushed during an ongoing animation
we now update it to reflect the new bubble.
 - If the current animation is in the middle of animating in,
   we only update the animating bubble without interrupting the
   current animation. The flyout content will show the data for the
   new bubble.
 - If the current animation is in the IN state, then the flyout is
   showing and we're just waiting for it to be hidden. In this case
   we update the flyout and reschedule the hide animation to run after
   a delay.
 - If the current animation is animating out,
   - If we're in the middle of collapsing the flyout, we reverse it
     so it shows with the new content and reschedule the hide animation
   - If the flyout is gone already, then we reverse the handle animation
     and show the flyout. If the handle animation is not running, then
     the animation is already over.

Not really related to this change, but while testing one of the tests
was flaky, so rewrote it to make it deterministic.

25x runs: https://android-build.corp.google.com/test_investigate/invocation/I56000010330987902/test/TR44729496826317635/

Demo of interrupting the animation while animating out: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/cu4fLeFlnDkg7mDVaaDTB

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 277815200
Fixes: 346400677
Test: atest BubbleBarFlyoutControllerTest
Test: atest BubbleBarViewAnimatorTest
Change-Id: I2b4af36d39bedbdfc4a08a988967ccbc33c06522
2024-10-30 16:57:08 -04:00
Ana Salazar Maldonado 4525546646 Merge "Add flag for launcher contrast tile" into main 2024-10-30 20:51:06 +00:00
Charlie Anderson 6963d7c0e3 Merge "Add custom talkback action for unarchiving apps" into main 2024-10-30 20:50:04 +00:00
Tony Wickham 87455f28fc TaskbarManager now sets TaskbarUIController for RecentsWindowManager
- FallbackTaskbarUIController can take in a generic
  RecentsViewContainer parameter, i.e. RecentsActivity or
  RecentsWindowManager.
- When changing Overview targets to RecentsWindowManager, which is not
  an Activity, we still update the TaskbarUIController

Test: Switch between default Home activities with the flag on and off,
ensure Taskbar works as expected in each case (3P vs 1P launcher).
Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 368030750
Fixes: 365775636

Change-Id: Ife775e8c226f8c73ec9e1f97b4a6f2972f6c905f
2024-10-30 20:21:26 +00:00
Mady Mellor e07699ae6a Fix an issue where the overflow wouldn't show if the flag was disabled
Flag: com.android.wm.shell.enable_bubble_bar
Test: manual - check that optional overflow flag is off and get
               bubbles in bubble bar, overflow should be present
Bug: 358304168
Change-Id: I1eb709003d4dcdde7ae465b837a2c68d40b1a828
2024-10-30 12:30:14 -07:00
Treehugger Robot c798f7800a Merge "Convert GridSizeMigrationLogic and DbEntry to Kotlin" into main 2024-10-30 19:27:20 +00:00
Brian Isganitis f9dea5e095 Merge changes I20cff11c,I751cdab5 into main
* changes:
  Stop suspending Launcher Taskbar in tests.
  Sandbox SettingsCache for Taskbar tests.
2024-10-30 19:05:14 +00:00
Android Build Coastguard Worker 427dc0d209 Merge cherrypicks of ['googleplex-android-review.googlesource.com/30152307'] into 25Q1-release.
Change-Id: I4739d42f62ff5ff0aab7366ae4902d822cf806ce
2024-10-30 19:02:11 +00:00
Daniel Chapin 0583861724 Revert "Shape screen communication with the Launcher's app (2/2)"
Revert submission 29934361-launcher-communication

Reason for revert: b/376371559 

Reverted changes: /q/submissionid:29934361-launcher-communication
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cd958b38acb45edc1b38910909743dc38d538d2d)
Merged-In: I26b2339fdb4da11312d4587ab31c23880ef0d746
Change-Id: I26b2339fdb4da11312d4587ab31c23880ef0d746
2024-10-30 19:01:38 +00:00
Charlie Anderson eac269ac81 Add custom talkback action for unarchiving apps
Bug: 373746865
Test: manually with Talkback
Flag: EXEMPT bugfix
Change-Id: I8c9efc029c2172e0dacd644b34f4930f50a7f8aa
2024-10-30 14:44:08 -04:00
fbaron ebc10c9ecc OneGrid Grid Option Updates
Bug: 330900048
Flag: com.android.launcher3.one_grid_specs
Test: n/a
Change-Id: I919195dbc7ac78c3be42f0f9d7620193a24d7e99
2024-10-30 11:38:09 -07:00
Charlie Anderson 04cac2fc6a Merge "Convert IconShape to use Dagger" into main 2024-10-30 17:43:52 +00:00
Brandon Dayauon 5d927b25e8 Merge "Fix crash when pausing work profile." into main 2024-10-30 17:17:31 +00:00
Treehugger Robot 5c9a48d5ed Merge "Revert "Shape screen communication with the Launcher's app (2/2)"" into main 2024-10-30 17:10:58 +00:00
fbaron 65ee96c65d Convert GridSizeMigrationLogic and DbEntry to Kotlin
Bug: 358399271
Flag: com.android.launcher3.grid_migration_refactor
Test: GridSizeMigrationDBControllerTest, ValidGridMigrationUnitTest
Change-Id: I2f9373fbc52a3d1c29242f7cd5a4042af617f0af
2024-10-30 09:32:49 -07:00
Ana Salazar Maldonado 870e8832ff Add flag for launcher contrast tile
Bug: 341217082
Flag: EXEMPT adding flag
Test: EXEMPT adding flag
Change-Id: I13720e037e51d33541012f5dcb49306284ea8899
2024-10-30 16:32:02 +00:00
Charlie Anderson 68f5a205f4 Convert ItemInstallQueue to use Dagger
Bug: b/372012340
Test: Presubmit
Flag: EXEMPT Dagger change
Change-Id: I28033f7f164d52cf6d69035b2b652fbf8eb2b393
2024-10-30 11:39:09 -04:00
Charlie Anderson c8e557a394 Convert IconShape to use Dagger
Bug: 372012340
Test: presubmit
Flag: EXEMPT dagger change
Change-Id: Ic4161fc0eac45cd71191f048472df01691018949
2024-10-30 11:34:15 -04:00
Daniel Chapin cd958b38ac Revert "Shape screen communication with the Launcher's app (2/2)"
Revert submission 29934361-launcher-communication

Reason for revert: b/376371559 

Reverted changes: /q/submissionid:29934361-launcher-communication

Change-Id: I26b2339fdb4da11312d4587ab31c23880ef0d746
2024-10-30 14:56:08 +00:00
Charlie Anderson 859bbaa718 Merge "Convert PackageManagerHelper to use Dagger" into main 2024-10-30 14:24:15 +00:00
Schneider Victor-tulias de739c226d Merge "Fix launcher crash on configuration changed" into main 2024-10-30 14:08:49 +00:00
Johannes Gallmann 600c1af779 Use FlingOnBackAnimationCallback for predictive back
Use FlingOnBackAnimationCallback to get automatically interpolated progress and out-of-the-box support for back gesture flings.

Bug: 362938401
Test: Manual, i.e. testing launcher predictive back cases (all apps, widget-picker)
Flag: com.android.window.flags.predictive_back_timestamp_api
Change-Id: I35806dbf005eb6fce97327d26c1e75bca60c2c77
2024-10-30 13:32:15 +00:00
samcackett 3ae3d297e6 Don't allow Desktop tasks to go outside Overview task bounds
Wrap TaskThumbnailView's in a new DesktopTaskContentView. This is in order to correctly crop the thumbnail children contained in the DesktopTaskView, otherwise any freeform task screenshots at the edges of the DTV leak outside the bounds.

We need a new container to do this, otherwise we will cut off the icon
or the hover border if we apply an outline to the DesktopTaskView itself.

Fix: 376206104
Flag: com.android.window.flags.enable_desktop_windowing_mode
Test: OverviewDesktopTaskImageTest
Change-Id: Ic51438e63aaf671a0a8156815d11fc7fa12beac0
2024-10-30 07:22:45 +00:00
Vinit Nayak d626cdd727 Merge "Disable OrientationEventListener in RotationTouchHelper#destroy()" into main 2024-10-30 01:38:32 +00:00
Toshiki Kikuchi c6b29e374c Merge "Handle display windowing mode change in onConfigChanged" into main 2024-10-30 01:25:23 +00:00
Ana Salazar Maldonado 9c907b5d4f Merge "Revert "Add flag for launcher pill"" into main 2024-10-30 01:00:29 +00:00
Cosmin Băieș a8190abb3a Merge "Cleanup ENABLE_HIDE_IME_CAPTION_BAR flag" into main 2024-10-30 00:19:01 +00:00
Android Build Coastguard Worker 2eef2f8e39 Snap for 12573674 from 4f5a78a9bf to 25Q1-release
Change-Id: I87f09321d775a493db70610a2e6e8562defcbb1e
2024-10-29 23:23:40 +00:00
Yuichiro Hanada ca23e23655 Merge "Move the animator for the minimization to WMShell" into main 2024-10-29 23:19:09 +00:00
Brian Isganitis bab87b1551 Stop suspending Launcher Taskbar in tests.
The Taskbar under test should now be sufficiently isolated from
Launcher, so we no longer have to suspend it.

Flag: TEST_ONLY
Bug: 230027385
Test: go/testedequals
Change-Id: I20cff11c90208b59f1dca3730ec3978913c43a50
2024-10-29 19:15:58 -04:00
Brian Isganitis 722d7b8dc9 Sandbox SettingsCache for Taskbar tests.
Flag: TEST_ONLY
Bug: 230027385
Test: go/testedequals
Change-Id: I751cdab5cca443111c28e5f752c8abb06410dc2c
2024-10-29 19:15:58 -04:00
Wen-Chien Wang c16a6394e4 Add margins to KQS view that is triggered from transient taskbar
This cl adds additional bottom margins to the KQS view for the
transient taskbar. Also adds a behavior that when the KQS view is
showing, the transient taskbar won't be stashed.

Screenshots with the new layout after this cl is uploaded to the
buganizer.

Bug: 368119679
Test: open KQS via transient taskbar and observe the bounds change
Flag: com.android.launcher3.taskbar_overflow
Change-Id: Ie50e768f828a24f0111df4cdba474a6482a4e1c7
2024-10-29 22:44:31 +00:00
Tracy Zhou 9b18ec739a Merge "Tuning gesture nav params for trackpad 3-finger gestures" into main 2024-10-29 22:12:28 +00:00
Treehugger Robot 331c3e3bef Merge "[Dagger] Make SystemUiProxy provided by DaggerSingletonObject" into main 2024-10-29 21:57:58 +00:00
Charlie Anderson 480b42f833 Convert PackageManagerHelper to use Dagger
Bug: 372012340
Test: presubmit
Flag: EXEMPT Dagger change
Change-Id: Ic0636fa086c9d846f7b38665a552fc4b2d12faa3
2024-10-29 16:42:19 -04:00
Treehugger Robot 4674c3bb2b Merge "Fix NPE in QuickstepTestInformationHandler#getWindowInsets" into main 2024-10-29 20:34:54 +00:00
Brandon Dayauon 0b2acd6516 Merge changes from topic "AddWorkSchedulerInWorkProfileFlag" into main
* changes:
  Add work_scheduler_in_work_profile flag.
  Remove layoutTransitions for current FAB and use custom animation.
2024-10-29 20:17:02 +00:00