Merge "Fix RecentsAnimationListener callback type to match Sys UI type" into main
This commit is contained in:
@@ -955,7 +955,7 @@ public abstract class AbsSwipeUpHandler<
|
||||
|
||||
@Override
|
||||
public void onRecentsAnimationStart(RecentsAnimationController controller,
|
||||
RecentsAnimationTargets targets, TransitionInfo transitionInfo) {
|
||||
RecentsAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {
|
||||
super.onRecentsAnimationStart(controller, targets, transitionInfo);
|
||||
if (targets.hasDesktopTasks(mContext)) {
|
||||
mRemoteTargetHandles = mTargetGluer.assignTargetsForDesktop(targets, transitionInfo);
|
||||
|
||||
@@ -22,6 +22,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER;
|
||||
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Bundle;
|
||||
import android.util.ArraySet;
|
||||
@@ -103,7 +104,7 @@ public class RecentsAnimationCallbacks implements
|
||||
RemoteAnimationTarget[] appTargets,
|
||||
RemoteAnimationTarget[] wallpaperTargets,
|
||||
Rect homeContentInsets, Rect minimizedHomeBounds, Bundle extras,
|
||||
TransitionInfo transitionInfo) {
|
||||
@Nullable TransitionInfo transitionInfo) {
|
||||
long appCount = Arrays.stream(appTargets)
|
||||
.filter(app -> app.mode == MODE_CLOSING)
|
||||
.count();
|
||||
@@ -207,7 +208,7 @@ public class RecentsAnimationCallbacks implements
|
||||
*/
|
||||
public interface RecentsAnimationListener {
|
||||
default void onRecentsAnimationStart(RecentsAnimationController controller,
|
||||
RecentsAnimationTargets targets, TransitionInfo transitionInfo) {}
|
||||
RecentsAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {}
|
||||
|
||||
/**
|
||||
* Callback from the system when the recents animation is canceled. {@param thumbnailData}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class RemoteTargetGluer {
|
||||
* transform params per app in {@code targets.apps} list.
|
||||
*/
|
||||
public RemoteTargetHandle[] assignTargetsForDesktop(
|
||||
RemoteAnimationTargets targets, TransitionInfo transitionInfo) {
|
||||
RemoteAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {
|
||||
resizeRemoteTargetHandles(targets);
|
||||
|
||||
for (int i = 0; i < mRemoteTargetHandles.length; i++) {
|
||||
|
||||
@@ -156,7 +156,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
mCallbacks.addListener(new RecentsAnimationCallbacks.RecentsAnimationListener() {
|
||||
@Override
|
||||
public void onRecentsAnimationStart(RecentsAnimationController controller,
|
||||
RecentsAnimationTargets targets, TransitionInfo transitionInfo) {
|
||||
RecentsAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {
|
||||
if (enableHandleDelayedGestureCallbacks() && mRecentsAnimationStartPending) {
|
||||
ActiveGestureProtoLogProxy.logStartRecentsAnimationCallback(
|
||||
"onRecentsAnimationStart");
|
||||
|
||||
@@ -125,7 +125,7 @@ public class RecentsWindowSwipeHandler extends AbsSwipeUpHandler<RecentsWindowMa
|
||||
|
||||
@Override
|
||||
public void onRecentsAnimationStart(RecentsAnimationController controller,
|
||||
RecentsAnimationTargets targets, TransitionInfo transitionInfo) {
|
||||
RecentsAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {
|
||||
super.onRecentsAnimationStart(controller, targets, transitionInfo);
|
||||
initTransformParams();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user