Loading quickstep/src/com/android/quickstep/util/TransformParams.java +1 −16 Original line number Diff line number Diff line Loading @@ -16,13 +16,10 @@ package com.android.quickstep.util; import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME; import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS; import android.util.FloatProperty; import android.view.RemoteAnimationTarget; import com.android.app.animation.Interpolators; import com.android.launcher3.Utilities; import com.android.quickstep.RemoteAnimationTargets; import com.android.quickstep.util.SurfaceTransaction.SurfaceProperties; Loading Loading @@ -151,20 +148,8 @@ public class TransformParams { int activityType = app.windowConfiguration.getActivityType(); if (activityType == ACTIVITY_TYPE_HOME) { mHomeBuilderProxy.onBuildTargetParams(builder, app, this); } else { // Fade out translucent overlay. // TODO(b/303351074): use app.isNotInRecents directly once it is fixed. boolean isNotInRecents = app.taskInfo != null && (app.taskInfo.baseIntent.getFlags() & FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) != 0; if (app.isTranslucent && isNotInRecents) { float progress = Utilities.boundToRange(getProgress(), 0, 1); builder.setAlpha(1 - Interpolators.DECELERATE_QUINT .getInterpolation(progress)); } else { builder.setAlpha(getTargetAlpha()); } proxy.onBuildTargetParams(builder, app, this); } } else { Loading Loading
quickstep/src/com/android/quickstep/util/TransformParams.java +1 −16 Original line number Diff line number Diff line Loading @@ -16,13 +16,10 @@ package com.android.quickstep.util; import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME; import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS; import android.util.FloatProperty; import android.view.RemoteAnimationTarget; import com.android.app.animation.Interpolators; import com.android.launcher3.Utilities; import com.android.quickstep.RemoteAnimationTargets; import com.android.quickstep.util.SurfaceTransaction.SurfaceProperties; Loading Loading @@ -151,20 +148,8 @@ public class TransformParams { int activityType = app.windowConfiguration.getActivityType(); if (activityType == ACTIVITY_TYPE_HOME) { mHomeBuilderProxy.onBuildTargetParams(builder, app, this); } else { // Fade out translucent overlay. // TODO(b/303351074): use app.isNotInRecents directly once it is fixed. boolean isNotInRecents = app.taskInfo != null && (app.taskInfo.baseIntent.getFlags() & FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) != 0; if (app.isTranslucent && isNotInRecents) { float progress = Utilities.boundToRange(getProgress(), 0, 1); builder.setAlpha(1 - Interpolators.DECELERATE_QUINT .getInterpolation(progress)); } else { builder.setAlpha(getTargetAlpha()); } proxy.onBuildTargetParams(builder, app, this); } } else { Loading