From 77c1673e64e68d7efad0b87efa3655d7c7b173a9 Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Thu, 17 Dec 2020 18:18:02 +0800 Subject: [PATCH] Let Launcher able to receive task launching callback(4/N) Ref doc: go/starting_window_android_s Test: build/flash Bug: 131311659 Bug: 131727939 Bug: 152480470 Change-Id: I4354ef33fe60c6026ab7f5e47fa024011e637359 --- .../src/com/android/quickstep/SystemUiProxy.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index 357aef16f7..5668817da8 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java @@ -37,6 +37,7 @@ import android.view.MotionEvent; import com.android.launcher3.util.MainThreadInitializedObject; import com.android.systemui.shared.recents.IPinnedStackAnimationListener; import com.android.systemui.shared.recents.ISplitScreenListener; +import com.android.systemui.shared.recents.IStartingWindowListener; import com.android.systemui.shared.recents.ISystemUiProxy; import com.android.systemui.shared.recents.model.Task; import com.android.systemui.shared.system.RemoteTransitionCompat; @@ -538,4 +539,18 @@ public class SystemUiProxy implements ISystemUiProxy { } } } + + /** + * Sets listener to get callbacks when launching a task. + */ + @Override + public void setStartingWindowListener(IStartingWindowListener listener) { + if (mSystemUiProxy != null) { + try { + mSystemUiProxy.setStartingWindowListener(listener); + } catch (RemoteException e) { + Log.w(TAG, "Failed call setStartingWindowListener", e); + } + } + } }