Merge "Fades out Assistant when entering Overview." into ub-launcher3-qt-future-dev
This commit is contained in:
commit
bdf1687f57
1 file changed
+6
-2
+6
-2
@@ -37,6 +37,7 @@ import com.android.launcher3.DeviceProfile;
|
|||||||
import com.android.launcher3.LauncherState;
|
import com.android.launcher3.LauncherState;
|
||||||
import com.android.launcher3.R;
|
import com.android.launcher3.R;
|
||||||
import com.android.launcher3.Utilities;
|
import com.android.launcher3.Utilities;
|
||||||
|
import com.android.launcher3.anim.Interpolators;
|
||||||
import com.android.launcher3.views.BaseDragLayer;
|
import com.android.launcher3.views.BaseDragLayer;
|
||||||
import com.android.quickstep.RecentsModel;
|
import com.android.quickstep.RecentsModel;
|
||||||
import com.android.quickstep.views.RecentsView;
|
import com.android.quickstep.views.RecentsView;
|
||||||
@@ -50,8 +51,6 @@ import com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat.
|
|||||||
import com.android.systemui.shared.system.TransactionCompat;
|
import com.android.systemui.shared.system.TransactionCompat;
|
||||||
import com.android.systemui.shared.system.WindowManagerWrapper;
|
import com.android.systemui.shared.system.WindowManagerWrapper;
|
||||||
|
|
||||||
import java.util.function.BiFunction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility class to handle window clip animation
|
* Utility class to handle window clip animation
|
||||||
*/
|
*/
|
||||||
@@ -213,6 +212,11 @@ public class ClipAnimationHelper {
|
|||||||
}
|
}
|
||||||
mCurrentCornerRadius = cornerRadius;
|
mCurrentCornerRadius = cornerRadius;
|
||||||
}
|
}
|
||||||
|
// Fade out Assistant overlay.
|
||||||
|
if (app.activityType == RemoteAnimationTargetCompat.ACTIVITY_TYPE_ASSISTANT
|
||||||
|
&& app.isNotInRecents) {
|
||||||
|
alpha = 1 - Interpolators.DEACCEL_2_5.getInterpolation(progress);
|
||||||
|
}
|
||||||
} else if (targetSet.hasRecents) {
|
} else if (targetSet.hasRecents) {
|
||||||
// If home has a different target then recents, reverse anim the
|
// If home has a different target then recents, reverse anim the
|
||||||
// home target.
|
// home target.
|
||||||
|
|||||||
Reference in new issue
Block a user