mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 02:16:49 +00:00
Peek overview on motion pause, then animate fully on touch up
Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT. When SWIPE_HOME is enabled: - Overview lives to the left of Workspace, which is encoded in LauncherState.NORMAL.getOverviewScaleAndTranslation(). - Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT and OVERVIEW_PEEK state when swiping and holding from home screen. Bug: 111926330 Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
This commit is contained in:
@@ -71,7 +71,9 @@ public abstract class BaseRecentsViewStateController<T extends View>
|
||||
@Override
|
||||
public final void setStateWithAnimation(@NonNull final LauncherState toState,
|
||||
@NonNull AnimatorSetBuilder builder, @NonNull AnimationConfig config) {
|
||||
if (!config.playAtomicComponent()) {
|
||||
boolean playAtomicOverviewComponent = config.playAtomicOverviewScaleComponent()
|
||||
|| config.playAtomicOverviewPeekComponent();
|
||||
if (!playAtomicOverviewComponent) {
|
||||
// The entire recents animation is played atomically.
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user