Merge changes from topic "remove_ipc" into main

* changes:
  [5/5] Removed unused IPC call.
  [4/5] Cover DragToBubbleController with tests.
  [3/5] Implement DragToBubbleController.
  [2/5] Hook up DragToBubbleController and prepare launcher to use it.
  [1/5] Added DragToBubbleController
This commit is contained in:
Mykola Podolian authored and Android (Google) Code Review committed 2025-05-16 16:01:03 -07:00
commit 9e4b44afcd
13 files changed
+622 -139

No files matched your search

@@ -136,6 +136,7 @@ import com.android.launcher3.taskbar.bubbles.BubbleDismissController;
import com.android.launcher3.taskbar.bubbles.BubbleDragController;
import com.android.launcher3.taskbar.bubbles.BubblePinController;
import com.android.launcher3.taskbar.bubbles.BubbleStashedHandleViewController;
import com.android.launcher3.taskbar.bubbles.DragToBubbleController;
import com.android.launcher3.taskbar.bubbles.stashing.BubbleStashController;
import com.android.launcher3.taskbar.bubbles.stashing.BubbleStashController.TaskbarHotseatDimensionsProvider;
import com.android.launcher3.taskbar.bubbles.stashing.DeviceProfileDimensionsProviderAdapter;
@@ -342,6 +343,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
new BubbleBarPinController(this, bubbleBarContainer, this::getScreenSize),
new BubblePinController(this, bubbleBarContainer, this::getScreenSize),
bubbleBarSwipeController,
new DragToBubbleController(this, bubbleBarContainer),
new BubbleCreator(this)
));
}
@@ -1289,7 +1291,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
&& !AbstractFloatingView.hasOpenView(
this, TYPE_ALL & ~TYPE_TASKBAR_OVERLAY_PROXY)) {
// Reverts Taskbar window to its original size
setTaskbarWindowFullscreen(false);
Runnable resetTaskbarFullscreen = () -> setTaskbarWindowFullscreen(false);
mControllers.bubbleControllers.ifPresentOrElse(
bc -> bc.dragToBubbleController.runAfterDropTargetsHidden(
resetTaskbarFullscreen), resetTaskbarFullscreen);
}
setAutohideSuspendFlag(FLAG_AUTOHIDE_SUSPEND_DRAGGING, isDragInProgress);