Commit Graph

12854 Commits

Author SHA1 Message Date
Toni Barzic
dfed7c8338 Handle edge case where overflow icon is overflowing
In certain situations, space in taskbar may be restricted so even the
overflow icon for running apps is technically overflowing available
space (i.e. not fully within intended margins). In such cases the
overflow icon was not rendered, as the size of the overflown icons was
larger than the number of running app icons, so the list of icons for
overflow icon was never fully initialized.
Handle this case by capping the number of items to add to overflow icon
to the number of available running apps.

Bug: 379774843
Test: Enable three button navigation, increase the display scaling (to
effectively reduce available space), and enter desktop session in
portrait orientation. Verify the taskbar overflow icon shows up.
Flag: com.android.launcher3.taskbar_overflow

Change-Id: I06371637d1b01e99eaf30aec98ae0920aa248652
2024-11-20 01:53:31 +00:00
Maryam Dehaini
9163f54158 Merge "Set task corner radius to match spec" into main 2024-11-19 19:00:45 +00:00
Marzia Favaro
6db5c5a772 Merge "Enable split screen from app handle also for non-desktop devices" into main 2024-11-19 18:18:32 +00:00
Brian Isganitis
79809b448c Merge "Add annotation to simulate RTL in tests." into main 2024-11-19 16:30:34 +00:00
Marzia Favaro
fadf3a891c Enable split screen from app handle also for non-desktop devices
Test: manual, open menu and go to split screen
Flag: com.android.window.flags.show_app_handle_large_screens
Bug: 377689543
Change-Id: Iaf8794abc1111c4ebce9254f6f5d1bada7f57dd5
2024-11-19 15:19:34 +00:00
Liran Binyamin
275e62e946 Merge "Fix bubble animation when swiping home" into main 2024-11-19 14:34:16 +00:00
Winson Chung
1ab7bd8357 Merge "Keep nav button container and back button stable during SUW" into main 2024-11-19 00:11:25 +00:00
Artsiom Mitrokhin
ddb0546277 Merge "Use dynamic/relative sizes for taskbar overflow button" into main 2024-11-18 23:47:38 +00:00
Liran Binyamin
232db796aa Fix bubble animation when swiping home
When swiping home during the bubble animation, and if the show edu
view state field is on, we try to show the bubble bar as part of
preparing to show the edu view. This updates the stash state and
prevents the animation from getting interrupted.

The expected behavior around showing the edu view is to store the
request when it is received and show the view later after the user
taps on the bubble bar or the flyout to expand it. We shouldn't
attempt to show the bubble bar at that point.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 378967270
Bug: 374842575
Test: manual
    - force show the edu: adb shell settings put secure force_show_bubbles_user_education 1
    - launch an app and send a bubble
    - while the bubble animates, swipe to go home
    - observe the flyout is removed correctly, and we don't end up in stashed state
Change-Id: I478b06ac5f6f9d398cd143bcc0b3f796d9ad8a49
2024-11-18 17:05:12 -05:00
Artsiom Mitrokhin
ef05519982 Use dynamic/relative sizes for taskbar overflow button
Bug: 376281549
Flag: com.android.launcher3.taskbar_overflow
Test: manual, press the overflow button, dismiss KQS
Change-Id: I7cf023cd0df34d898ee1949c5c6de930268e37cb
2024-11-18 15:45:50 -05:00
Schneider Victor-tulias
b7714d0937 Merge "Refactor InputConsumer selection logic into a util class" into main 2024-11-18 20:28:21 +00:00
Tony Wickham
4ad57959d6 Merge "End icon alignment early when touching down during 3 button anim to home" into main 2024-11-18 18:53:55 +00:00
Jeremy Sim
ec788cb24d Merge "Migrate away from listening for main/side specific stage types" into main 2024-11-18 18:41:38 +00:00
Vinay Joglekar
c656c3807c Merge "Fix Blank task thumbnails during animation in following scenarios" into main 2024-11-18 18:01:17 +00:00
Schneider Victor-Tulias
cfce474121 Refactor InputConsumer selection logic into a util class
This will allow us to test the logic in isolation

Flag: EXEMPT refactor
Bug: 371020209
Test: NONE refactor
Change-Id: I5e1e9cc79e69db261ea28a2f7d43a983339f178b
2024-11-18 12:33:40 -05:00
vinayjoglekar
f01ead4eb1 Fix Blank task thumbnails during animation in following scenarios
1. During split
2. During dismiss

We need to expand window of visible task data, we use dismissTranslation property to increase window.

Fix: 376409147
Flag: EXEMPT bugfix
Test: Manual: Dismiss desktop when have focus task as well as small tiles, split from far away with multiple desktops
Change-Id: I0102f8927e70a37ffe4db18adefd33eb7a823981
2024-11-18 13:56:26 +00:00
Johannes Gallmann
2760536a3b Merge "Fix window clipped in three-button-nav on phone factors" into main 2024-11-18 08:19:17 +00:00
Jagrut Desai
15d689df48 Merge "DesktopMode Entry/Exit Signals" into main 2024-11-16 19:44:36 +00:00
Vinit Nayak
49282f8ecc Migrate away from listening for main/side specific stage types
Bug: 349828130
Flag: com.android.wm.shell.enable_flexible_split
Test: Manual, incremental change, not stable yet.
Works fine with flag off

Change-Id: Ief1a41fb9f32cd99266f0ac73b17d5676ead042a
2024-11-15 23:57:46 +00:00
Jon Miranda
ec111e24e5 Check if all apps are translucent when finishing recents animation.
If true, then launcher will be finished at the end of the animation.
This fixes the issue where taskbar will stash in overview because
we assumed the app was fully opaque.

Bug: 354627538
Test: open app, go to overview, tap icon, pause app, note no issue
Flag: EXEMPT bugfix
Change-Id: Id51e0d9f63c9615127e27455f7edf171381c2011
2024-11-15 23:47:48 +00:00
Winson Chung
6dcbee5d30 Keep nav button container and back button stable during SUW
- Disable translations on both the container and back button while
  in SUW since it's aligned with SUW actions (even in the rare case
  that a user will set up device lock and then lock/unlock the screen
  to show the bouncer while in SUW)

Bug: 346923810
Flag: EXEMPT bugfix
Test: Wipe and go through SUW with device lock
Change-Id: I2d500103e8775d8cf52185d43b3b43cc518884e1
2024-11-15 23:26:52 +00:00
Jagrut Desai
a9095ca0c8 Merge "Fix launching app animation from launcher all apps." into main 2024-11-15 22:43:39 +00:00
Tony Wickham
5903216275 End icon alignment early when touching down during 3 button anim to home
This will allow Hotseat to handle the touch during the transition.

Test: manually touch Hotseat in pinned/transient/3-button taskbar during
the transition to home, ensure Hotseat handles it in all cases
Flag: EXEMPT bug fix
Fixes: 368419997

Change-Id: I3d998876ed4d8423bdb4fd48fa0d55f719da8d01
2024-11-15 22:17:50 +00:00
Brian Isganitis
01eb1e037b Add annotation to simulate RTL in tests.
Flag: TEST_ONLY
Bug: 230027385
Test: go/testedequals
Change-Id: Idc4ca404179359a6dc4fac160b7a865c5709f137
2024-11-15 15:09:37 -05:00
Saumya Prakash
52866fc596 Merge "Add Manage Windows option to Taskbar long press menu" into main 2024-11-15 08:57:49 +00:00
Saumya Prakash
dbaf1028db Add Manage Windows option to Taskbar long press menu
This change adds an option to the long press menu on Taskbar apps to
view open instances of the calling apps. It will only show on apps that
support multi instance (ex. Chrome).

Bug: 315989246
Test: Manual
Flag: com.android.launcher3.enable_multi_instance_menu_taskbar
Change-Id: Ie1e001c4cec831c751bcbf448aaa68bb90fb24ca
2024-11-15 06:34:28 +00:00
Jagrut Desai
b03d9393ce Merge "Fix TaskbarAllApps and TaskbarDivider contianer talkback annoucement" into main 2024-11-15 00:05:43 +00:00
Jagrut Desai
8a9e7a1dfd Merge "Fix 3-button Navigation Switch Access Long press" into main 2024-11-15 00:05:08 +00:00
Jagrut Desai
596594c684 Fix launching app animation from launcher all apps.
This cl includes
	- making pinned taskbar animate slide in/out animation from bottom of screen.
        - no icon aligment with hotseat when taksbar is pinned

The solution
	- upon state change applied on TaskbarLauncherStateController. offset taskbar background and icons to bottom of screeen and animate with slide in/out effects.

Test: manual, presubmit
Bug: 314279101
Flag: EXEMPT bugfix

Change-Id: Ife336ebd57eb2f60c2bc33ed6a4527c42111808f
2024-11-14 15:51:50 -08:00
Treehugger Robot
90c4e9e62b Merge "Fix hotseat layout on device rotation." into main 2024-11-14 22:10:32 +00:00
Jagrut Desai
1ba1f7282b Fix TaskbarAllApps and TaskbarDivider contianer talkback annoucement
This cl includes
	- setting content description on new taskbar containers for all apps and divider line, so their announcement is clear to user and not unlabelled.

Test: Manual
Bug: 378855202
Bug: 378845796
Flag: EXEMPT bugfix
Change-Id: I4650d1960a6208189b08b16ff541b2af3ed94cb3
2024-11-14 14:00:57 -08:00
Jagrut Desai
a9b502b464 DesktopMode Entry/Exit Signals
This cl includes
	- adding callback support for entering/exiting DesktopMode on launcher side.

Test: Presubmit
Bug: 343882478
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Ib86746e6cca42dcdbb181d5323715a24c722f004
2024-11-14 12:02:13 -08:00
Schneider Victor-tulias
a8dd1a90df Merge "Update RecentsWindowSwipeHandler to animate home->overview properly" into main 2024-11-14 19:44:13 +00:00
Jagrut Desai
48793e1fcd Fix 3-button Navigation Switch Access Long press
This cl includes
 - Make long press of back navigation button of 3 button navigation mode behave just like short press.

Test: Manual
Bug: 315723734
Flag: EXEMPT bugfix
Change-Id: Id897c84dcb33f73174ea907c5ab5655d2ac5ba10
2024-11-14 11:27:14 -08:00
Treehugger Robot
1297e9eb98 Merge "Change fallback closing animators for Desktop Mode." into main 2024-11-14 18:23:01 +00:00
Liana Kazanova (xWF)
94f4f1bcf3 Merge "Revert "Listen to LauncherUserInfo config changes and hide/unhid..."" into main 2024-11-14 17:27:31 +00:00
Gustav Sennton
8e4cae1258 Change fallback closing animators for Desktop Mode.
The main changes are:
1. the amount to move the window horizontally (much less for Desktop
Mode), and
2. the timing for when the alpha animation is applied - we remove the
   25ms delay for freeform windows.

Bug: 378675987
Test: manual
Flag: com.android.window.flags.enable_desktop_windowing_exit_transitions
Change-Id: Ieeb6b827eee2e6314ea9c79213cdf401f48d3c85
2024-11-14 16:26:07 +00:00
Treehugger Robot
55c2aca78e Merge "Updates layout when overflow button and alt-tab are both triggered." into main 2024-11-14 16:13:54 +00:00
Pechetty Sravani (xWF)
41743bd0c7 Revert "Listen to LauncherUserInfo config changes and hide/unhid..."
Revert submission 29352757-update-usericoninfo

Reason for revert: <DroidMonitor created revert due to b/379000263. Will be verified through ABTD for standard investigation.>

Reverted changes: /q/submissionid:29352757-update-usericoninfo

Change-Id: I751536274ec9dcc4047bf9c76b3a5cab258da6e4
2024-11-14 06:11:15 +00:00
mpodolian
b563271ff5 Fix hotseat layout on device rotation.
When rotating the device, a few issues were causing improper hotseat
layout:

- BubbleBarController receives an initial configuration before the UI
controller is set.
- The updated device profile, including the correct `isQsbInline` value,
arrives after all controllers are recreated, and the UI controller is
not informed of the device profile update.

Added logic to carry over the bubble bar bubble visibility state to the
new UI controller. Included a call to notify the UI controller of the
device profile update.

Fixes: 378400160
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual. Have a Tangor device in landscape orientation with the
bubble bar. Rotate the device - observe hotseat and QSB are reduced in
width. Dismiss the bubble bar - observe hotseat and QSB extends to the
full width.
video: http://recall/-/gx8ASgewUeUS3QYohfrd1J/e8e1ZFRQlbHQtUlCXVJbFJ

Change-Id: If180b01c8cdb329cd45d084af63a986c08cf65a1
2024-11-13 17:41:17 -08:00
Olivier Nshimiye
0b2cb4961c Merge "Listen to LauncherUserInfo config changes and hide/unhide private space entrypoint accordingly" into main 2024-11-14 00:03:34 +00:00
Treehugger Robot
85f34826f1 Merge "4b/ Migrate TopTaskTracker to use visible running tasks from Shell" into main 2024-11-13 23:47:27 +00:00
Maryam Dehaini
1fbb98e057 Set task corner radius to match spec
The task bar sets the corner radius of maximized tasks in desktop
windowing. This change updates the corner radius to match the most
recent spec.

Bug: 369592605
Test: manual testing
Flag: EXEMPT bugfix
Change-Id: I87bbaaf262f30e95fe1760d2dad51a890efca4c1
2024-11-13 14:00:33 -08:00
Olivier Nshimiye
39dee43e12 Listen to LauncherUserInfo config changes and hide/unhide private space
entrypoint accordingly

Flag: android.multiuser.add_launcher_user_config

Bug: 346553745
Test: Manual - verified on device
Test: atest LauncherAppsTests

Change-Id: I202c4c76af4f96d5b3226daffcfebc2f9b9703b1
2024-11-13 21:35:05 +00:00
Brandon Dayauon
1d9b09c2e8 Merge "Update height of predictionRow + 4dp to be aligned with NL app suggestions height." into main 2024-11-13 21:00:45 +00:00
Wen-Chien Wang
ca95004403 Updates layout when overflow button and alt-tab are both triggered.
Before this cl, the KQS view is closed and reopened when the
overflow button and alt-tab key are triggered one after the other.
This cl changes the behavior so that instead of reopening, the
list of task is updated and the KQS container layout is toggled
between "wrap content" and "match parent".

Bug: 368119679
Test: open KQS via taskbar and observe the layout change
Flag: com.android.launcher3.taskbar_overflow
Change-Id: I05ea4c66727daa206ff1d7906500dc8f9cc81982
2024-11-13 20:48:07 +00:00
Artsiom Mitrokhin
f0b80dadb2 Merge "Implement app icons <-> leave behind animation" into main 2024-11-13 19:42:54 +00:00
Treehugger Robot
a8440279bf Merge "Account for bubble bar bounds for taskbar overflow" into main 2024-11-13 19:23:22 +00:00
Schneider Victor-Tulias
8451f0fb1e Update RecentsWindowSwipeHandler to animate home->overview properly
Update RecentsWindowSwipeHandler to animate home alpha properly

Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 366022874
Test: Attempted gesture from home and launched app

Change-Id: Idf4ed071a843a129f1d39caa59e468f6c88e9e38
2024-11-13 13:12:09 -05:00
Liran Binyamin
12d34f8e2a Merge "Make the flyout color animation smooth" into main 2024-11-13 16:14:07 +00:00