Merge "Let Launcher able to receive task launching callback(4/N)" into sc-dev am: 23c0fc4ac0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13425371

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia51968691d0932ca02b8de4721ac14fa39326e2e
This commit is contained in:
Wei Sheng Shih authored and Automerger Merge Worker committed 2021-03-08 04:08:05 +00:00
commit 92be5ff9ac
1 file changed
+15
@@ -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);
}
}
}
}