mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Updating the top scrim to also use dynamicaly generated bitmap
Bug: 237818532 Test: Verified on device Flag: N/A Change-Id: I22ceb470677ab9df53e40fb78f0292b7fd5e2241
This commit is contained in:
@@ -22,7 +22,6 @@ import static android.view.RemoteAnimationTarget.MODE_OPENING;
|
||||
import static com.android.launcher3.QuickstepTransitionManager.RECENTS_LAUNCH_DURATION;
|
||||
import static com.android.launcher3.QuickstepTransitionManager.STATUS_BAR_TRANSITION_DURATION;
|
||||
import static com.android.launcher3.QuickstepTransitionManager.STATUS_BAR_TRANSITION_PRE_DELAY;
|
||||
import static com.android.launcher3.graphics.SysUiScrim.SYSUI_PROGRESS;
|
||||
import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_STATE_ORDINAL;
|
||||
import static com.android.quickstep.OverviewComponentObserver.startHomeIntentSafely;
|
||||
import static com.android.quickstep.TaskUtils.taskIsATargetWithMode;
|
||||
@@ -130,7 +129,7 @@ public final class RecentsActivity extends StatefulActivity<RecentsState> {
|
||||
mScrimView = findViewById(R.id.scrim_view);
|
||||
mFallbackRecentsView = findViewById(R.id.overview_panel);
|
||||
mActionsView = findViewById(R.id.overview_actions_view);
|
||||
SYSUI_PROGRESS.set(getRootView().getSysUiScrim(), 0f);
|
||||
getRootView().getSysUiScrim().getSysUIProgress().updateValue(0);
|
||||
|
||||
SplitSelectStateController controller =
|
||||
new SplitSelectStateController(this, mHandler, getStateManager(),
|
||||
|
||||
@@ -177,8 +177,8 @@ public class StaggeredWorkspaceAnim {
|
||||
|
||||
addDepthAnimationForState(launcher, NORMAL, duration);
|
||||
|
||||
mAnimators.play(launcher.getRootView().getSysUiScrim().createSysuiMultiplierAnim(0f, 1f)
|
||||
.setDuration(duration));
|
||||
mAnimators.play(launcher.getRootView().getSysUiScrim().getSysUIMultiplier()
|
||||
.animateToValue(0f, 1f).setDuration(duration));
|
||||
}
|
||||
|
||||
private void addAnimationForPage(CellLayout page, int totalRows, long duration) {
|
||||
|
||||
@@ -92,7 +92,8 @@ public class WorkspaceRevealAnim {
|
||||
}
|
||||
|
||||
// Add sysui scrim animation.
|
||||
mAnimators.play(launcher.getRootView().getSysUiScrim().createSysuiMultiplierAnim(0f, 1f));
|
||||
mAnimators.play(launcher.getRootView().getSysUiScrim()
|
||||
.getSysUIMultiplier().animateToValue(0f, 1f));
|
||||
|
||||
mAnimators.setDuration(DURATION_MS);
|
||||
mAnimators.setInterpolator(Interpolators.DECELERATED_EASE);
|
||||
|
||||
Reference in New Issue
Block a user