Commit Graph

83004 Commits

Author SHA1 Message Date
mpodolian
6f82248053 Notify taskbar and nav bar of bubble bar location updates.
Added logic to notify the BubbleBarLocationListener implementors on
bubble bar location updated.

Bug: 411506181
Test: DragToBubbleControllerTest
Flag: com.android.wm.shell.enable_create_any_bubble
Change-Id: I51290bb6c2b35ff913a43c04db35be65b377ea03
2025-05-29 15:54:05 -07:00
Daniel Andersson
fc9044576e desktop-exploded-view: Fix regression in quick switch
This is a stop gap solution to fix an issue when quick-switching to a
desktop. The way layout exploded layout currently happens is that we
immediately lay windows out in their exploded (non overlapping) position
and interpolate to the overlapping default position using an animated
transform. When the original window is larger than its exploded layout
(which is going to be the common case), then the header (which is sized
for the exploded layout) is going to look large when the window is
transformed into its overlapping position.

This is a quick fix that basically just hides the header when it
shouldn't be visible.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: manual
BUG=b/414991065

Change-Id: I906e7f3cb28c57fc81e64b224ef82554ef4c9a5c
2025-05-29 15:47:21 -07:00
mpodolian
9310212582 Notify Taskbar and Navigation bar of the bubble bar location updates.
Added logic to notify the BubbleBarLocationListeners (Taskbar and
Navigation bar) of bubble bar location animated.

Fixes: 420929193
Test: Manual. Use unfolded foldable device. Set 3 buttons navigation
mode. Go to the launcher overview screen. Create any application bubble.
Drag bubble to the opposite side of the screen - observe navigation
buttons bar updates its location with the bubble bar.
Add one more application bubble. Drag bubble from the expanded bubble
bar. Observe navigation bar position is updated with the bubble bar.
Flag: EXEMPT - bugfix

Change-Id: I2bbdcdd702141b19695480e87d6cdd456e834e11
2025-05-29 15:35:02 -07:00
Toni Barzic
229bbf059c Don't cap number of items in taskbar overflow
Updates KQS view not to show fullscreen tasks, and not to cap off number
of items in the view if shown for taskbar overflow.

Bug:419279335
Test: TaskbarOverflowTest
Flag: com.android.window.flags.enable_taskbar_overflow

Change-Id: I771cabc51ffa527b7db83cf12747cf8c4793670d
2025-05-29 22:14:44 +00:00
Shamali Patwa
97cbe1c132 Add dagger2-compiler to some of picker module targets.
Also mark factories with widget picker annotation.

Bug: 408283627
Flag: EXEMPT independent module
Test: dagger compilation
Change-Id: I716e6cd2eefe44db9a597a80329631484089e84b
2025-05-29 13:26:15 -07:00
Shamali Patwa
9d946aa755 Add no-op widget picker module to some test modules / graphs.
Bug: 408283627
Flag: EXEMPT not applicable
Test: dagger build
Change-Id: I77b2f9f32037303ddfd7f2950c7b235f9aff8f2c
2025-05-29 13:26:10 -07:00
Shamali Patwa
e61df48651 Wire the compose based widget picker in widget picker activity
- Uses new picker behind a flag.
- Includes appropriate implementation of picker module based on whether compose is enabled.

Bug: 408283627
Flag: EXEMPT independent module
Test: Upcoming in follow up cls
Change-Id: I13e69379bc89c6d2e6909f9d11937997affc6a58
2025-05-29 13:26:00 -07:00
Matthew Mourgos
45101ddfb5 Navigate Home to hide tasks on WidgetPicker show
When the widget picker is shown while the show_home_behind_desktop
feature is enabled, it becomes possible for the widget picker to be
opened while freeform tasks are occluding the home screen. To fix this
case, navigate Home to move it in front of occluding tasks, and then
open the widget picker. Navigating home is an asynchronous action, and
widget picker will already be opening once the intent executes, so
exlude closing the widget picker when closing all AbstractFloatingViews
in this case.

This change is intended for the desktop form factor.

Bug: 416057590
Flag: com.android.window.flags.show_home_behind_desktop
Test: Open freeform tasks, open WidgetPicker via menu, make sure that
tasks are hidden and WidgetPicker shows.

Change-Id: I19ebeeb706ae7374df8038d956d453708bc96f7e
2025-05-29 13:13:20 -07:00
Xiaoqian (Daisy) Dai
05fa101519 desktop-exploded-view: Expand touch area for the task header close button
According to the spec, the hit rect of the close button should be 32dp.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 420930786
Change-Id: I2a066c03ba728780520ce95648c20103376c73c7
2025-05-29 19:18:40 +00:00
Sam Cackett
f0e152333f Merge "Hide share UI when leaving Overview" into main 2025-05-29 12:12:58 -07:00
Sam Cackett
b7807f2bb8 Hide share UI when leaving Overview
Fix: 418960769
Flag: EXEMPT. Bugfix
Test: OverviewActionsControllerTest & Manual
Change-Id: I8bbda20350a933a0e9f501b9a521b96543cb3b78
2025-05-29 12:11:21 -07:00
Jon Miranda
e674c4f382 Update taskbar icon alpha in pinned taskbar animation if not final value.
This fixes the issue where taskbar icons are invisible when first launching
an app.

Bug: 417887915
Test: have pinned taskbar, go home, quick toggle theme, launch app
Flag: EXEMPT bugfix
Change-Id: Ia9f91589f82a647db8edac5e464b32f2f4f0ea73
2025-05-29 12:01:41 -07:00
Catherine Liang
4bbf978043 Move custom Launcher theme flag to shared SysUI package (1/3)
This allows the flag to be shared with Customization Picker.

Flag: com.android.systemui.shared.extendible_theme_manager
Test: manually verified by building w/ soong and gradle
Test: manually verified by flipping flag
Bug: 397782741
Change-Id: I131f54602e33dd2b92ce0068f5fc43da3e150a01
2025-05-29 18:47:43 +00:00
Xiaoqian (Daisy) Dai
f753781b3c Merge "desktop-exploded-view: clean up 'remoteTargetHandles`" into main 2025-05-29 11:09:55 -07:00
Sebastian Franco
8244449a9f Moving taskbar variables in DeviceProfile to their own class
Bug: 419264653
Flag: EXEMPT refactor
Test: DeviceProfileDumpTest
Test: All Image tests
Change-Id: I05ec9e15ef02096326596af4835adb706473a736
2025-05-29 11:04:06 -07:00
Anushree Ganjam
ab50c3ab25 Remove the debug tracing.
Bug: 399112039
Test: Presubmit
Flag: TEST_ONLY
Change-Id: I8e542a73cfb440d82e6cd02d531721d0fa35d3d1
2025-05-29 11:00:18 -07:00
Bill Yi
4f08a7a40e Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-29 10:53:34 -07:00
Bill Yi
1fe4921309 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-29 10:53:34 -07:00
Treehugger Robot
ba8a5a2235 Merge "Disable surface effects when a theme controller doesn't support adaptive themed icons" into main 2025-05-29 09:57:49 -07:00
Jagrut Desai
2cb88061e4 Merge "Fix Settting Cache NPE" into main 2025-05-29 09:44:39 -07:00
Treehugger Robot
3893804a59 Merge "Moving hotseat variables in DeviceProfile to their own class" into main 2025-05-29 09:01:51 -07:00
Ebru Kurnaz
0fe7cca416 Merge "Use DesktopExperienceFlags for sys decor in launcher." into main 2025-05-29 08:29:08 -07:00
Ajinkya Chalke
4be13eb311 Remove obsolete TODO
- From b/399089118#comment2 "On external dispalys, RecentsViewContainer is always RecentsWindowManager, so onOverviewTargetChanged will never be called on external displays". So we we only need to track OverviewTargetChange for default display.

Fix: 399089118
Test: m
Flag: EXEMPT comment only change
Change-Id: Ica0527e45da6f0079bae5b69e9100b9f74d7f7ad
2025-05-29 08:01:51 -07:00
Pat Manning
14b76f7867 Do not reflow dismissed grid task is already in split select.
When the task is not found in top or bottom set, return current page. This fixes rotation in overview while split select is already active.

Fix: 420546041
Test: TaskGridNavHelperTest
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I4f654b017a0c051bd373e78ebd3d3f02f7bdf3cf
2025-05-29 14:49:55 +01:00
Uwais Ashraf
478f07798e Moving hotseat variables in DeviceProfile to their own class
Bug: 419264653
Flag: EXEMPT refactor
Test: DeviceProfileDumpTest
Test: All Image tests
Change-Id: I377b33668c3ed330d362527f62226dd84a5773db
2025-05-29 13:16:05 +00:00
Pat Manning
4de1791bd0 Merge "Finish recents animation when dragging to launch non-live tile." into main 2025-05-29 03:06:21 -07:00
Daniel Andersson
f9afe843dc Merge "desktop-exploded-view: Adding keyboard navigation to DesktopTaskView" into main 2025-05-28 20:35:48 -07:00
Treehugger Robot
baacf9f4df Merge "Converting StatsLogManager to kotlin" into main 2025-05-28 18:29:53 -07:00
Bill Yi
e433e87589 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1455a7cd0600354dcf903c2cdf75c20e694bd19c
2025-05-29 01:04:05 +00:00
Bill Yi
49239572dd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib26389f7445b418ec8a59913f47d8f6ff86bb079
2025-05-29 01:03:17 +00:00
Shamali Patwa
8e1ac2de44 Repository and datasource implementations backing the widget picker.
Bug: 408283627
Flag: EXEMPT independent module
Test: Existing tests
Change-Id: I0f0b68c25f416c8494f363ecc93a388570f8dfa6
2025-05-28 16:49:18 -07:00
Shamali Patwa
5293a8c9ff Add widget picker module dependency to launcher when compose is enabled
Bug: 408283627
Flag: EXEMPT independent module
Test: Not applicable.
Change-Id: I1b83fca74fefd0a43291515b7197af650236ed44
2025-05-28 16:49:12 -07:00
Shamali Patwa
807d4c0268 Open widget picker activity instead of full sheet when refactor flag is on
Bug: 408283627
Flag: EXEMPT independent module
Test: Manual
Change-Id: I6dbd1614ae1e49e3c781d6e08199c8c17221eed7
2025-05-28 16:49:06 -07:00
Sunny Goyal
ac35781625 Disable surface effects when a theme controller doesn't support adaptive themed icons
Bug: 420985075
Bug: 415118235
Flag: com.android.launcher3.extendible_theme_manager
Test: Verified on device
Change-Id: I82c46e529aa59be345bf6cdfcfa29fdf784c0068
2025-05-28 16:38:24 -07:00
Treehugger Robot
6facece986 Merge "Adding dagger subcomponent for activity context scope" into main 2025-05-28 16:11:00 -07:00
Vadim Tryshev
a5c22505bb Merge "Removing ViewCaptureRule" into main 2025-05-28 15:01:22 -07:00
Saumya Prakash
2ee6ac9a0c Ensure correct conditions for TaskbarStashControllerTest
This change explicitly allows for TaskbarStashControllerTest to control
whether the navigation bar is visible in setup wizard or not. This was
needed because two test cases rely on the navbar being visible/not
visible and would otherwise lead to a test failure.

Fix: 420737945
Test: atest NexusLauncherTests:com.android.launcher3.taskbar.TaskbarStashControllerTest
Flag: EXEMPT bugfix
Change-Id: Ie0da668f0d37753e38cd4dcc17532aed761f0f7b
2025-05-28 21:28:07 +00:00
Matthew Mourgos
4ddf9f1df1 Merge "Disable swipe up on workspace when launcher is not the top task" into main 2025-05-28 14:26:33 -07:00
Sunny Goyal
bb0f554148 Converting StatsLogManager to kotlin
This is make it easier to create factory classes for individual when adding more injected parameters

Bug: 361850561
Test: Presumit
Flag: EXEMPT refactor
Change-Id: Ie68e9e24aae801b7fed14d1b03df760e5b67c183
2025-05-28 14:12:13 -07:00
Daniel Andersson
04066346c2 desktop-exploded-view: Adding keyboard navigation to DesktopTaskView
This CL makes TaskContentView focusable and adds a focus border to it
that is shown when it has focus. There are some caveats currently:

* Recents has a bug where it starts to eat TAB inputs (b/403292849).
  This means that the tab navigation is currently quite shaky and
  often just works the first time entering recents.
* Activating a window (with enter) is currently disabled because of
  another existing bug (b/413378320).

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 353949138

Change-Id: I1c9c7e437f2e131c4ead1d750952ee9ff77c17f4
2025-05-28 13:54:59 -07:00
Sunny Goyal
182dbd609d Adding dagger subcomponent for activity context scope
Bug: 361850561
Test: Presumit
Flag: EXEMPT refactor
Change-Id: I2d2e556fc1c81eaac74e2a1a2a1c5526505f7a56
2025-05-28 13:33:22 -07:00
Liran Binyamin
63850c4a1d Merge "Deflake BubbleBarViewScreenshotTest" into main 2025-05-28 13:17:10 -07:00
Liran Binyamin
f53c72b4ed Deflake BubbleBarViewScreenshotTest
Suppress animation to avoid flakes

Fix: 416207075
Flag: EXEMPT test only
Test: atest BubbleBarViewScreenshotTest
Change-Id: I6e3c6105cef4a5d74567de91de75e8bec7609b3c
2025-05-28 13:16:50 -07:00
Pat Manning
ca656fb54a Finish recents animation when dragging to launch non-live tile.
Fix: 396255976
Bug: 299060584
Bug: 359117837
Test: Manual.
Flag: EXEMPT Bugfix
Change-Id: I3ada253a88119cebc49c8f173bcc9347c1421bed
2025-05-28 20:12:32 +01:00
Ebru Kurnaz
4851c5cab9 Use DesktopExperienceFlags for sys decor in launcher.
Bug: 420950767
Test: build next and verified
Flag: com.android.window.flags.enable_sys_decors_callbacks_via_wm
Change-Id: I605275f893f3f040d904794a2d1e16de34e49225
2025-05-28 19:05:07 +00:00
Vadim Tryshev
f3112aea02 Removing ViewCaptureRule
Bug: 315482167
Flag: EXEMPT test fix
Test: presubmit
Change-Id: If60412dcec9614fefe897e766395660acb8fa4f8
2025-05-28 11:53:07 -07:00
Treehugger Robot
43acf1593b Merge "Switch to desk rather than home on background click if we're in desktop mode" into main 2025-05-28 11:38:04 -07:00
Treehugger Robot
bf0411ea7e Merge "Update hotseat qsb and icons visibility with alpha" into main 2025-05-28 11:18:13 -07:00
Treehugger Robot
6e3d6d0a69 Merge "Moving bottom sheet variables to their own class" into main 2025-05-28 11:11:40 -07:00
Matthew Mourgos
eca91f8de6 Disable swipe up on workspace when launcher is not the top task
When freeform windows are shown on top of launcher, disable the swipe up
to open all apps, which would open behind these windows. This change is
inteded for the desktop form factor.

Bug: 419565477
Flag: com.android.window.flags.show_home_behind_desktop
Test: Manually swipe up on home screen with freeform windows shown.
Change-Id: I795e9e05fe39b0cf8033b51ce4369340d49ef812
2025-05-28 10:55:16 -07:00