From 5d904e0f67a95ff58c73cd655fcd604375467e9b Mon Sep 17 00:00:00 2001 From: mpodolian Date: Wed, 22 Jan 2025 15:05:52 -0800 Subject: [PATCH] IPC for app icons drag events over the Bubble Bar Added an IPC call to inform the Bubble Bar in the launcher process of drag events from the shell. Bug: 388894910 Flag: com.android.wm.shell.enable_bubble_bar Test: Manual. Check that events from the shell process successfully reach the launcher process. Change-Id: I01615911ce7e4250138aedaa5823f639b9163ff0 --- .../taskbar/bubbles/BubbleBarController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java index 7d39bf8d4d..acdcb6a002 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java @@ -34,6 +34,7 @@ import android.os.Bundle; import android.os.SystemProperties; import android.util.ArrayMap; import android.util.Log; +import android.widget.Toast; import com.android.launcher3.taskbar.TaskbarSharedState; import com.android.launcher3.taskbar.bubbles.stashing.BubbleStashController; @@ -589,6 +590,18 @@ public class BubbleBarController extends IBubblesListener.Stub { }); } + @Override + public void onDragItemOverBubbleBarDragZone(BubbleBarLocation location) { + //TODO(b/388894910): add meaningful implementation + MAIN_EXECUTOR.execute(() -> + Toast.makeText(mContext, "onDragItemOver " + location, Toast.LENGTH_SHORT).show()); + } + + @Override + public void onItemDraggedOutsideBubbleBarDropZone() { + + } + /** Notifies WMShell to show the expanded view. */ void showExpandedView() { mSystemUiProxy.showExpandedView();