mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Add wallpaper zoom to areas that have blur
Whenever blurring, the wallpaper should also zoom out. This is the mental model of our Depth System. Test: manual Bug: 149792636 Change-Id: I1783eb87fefeb6f917f0ba64f2c6ec8f1f2004fa
This commit is contained in:
@@ -21,7 +21,6 @@ import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
|
||||
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.MAX_NUM_ITEMS_IN_PREVIEW;
|
||||
import static com.android.launcher3.graphics.IconShape.getShape;
|
||||
import static com.android.launcher3.icons.GraphicsUtils.setColorAlphaBound;
|
||||
import static com.android.launcher3.uioverrides.BackgroundBlurController.BACKGROUND_BLUR;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
@@ -47,7 +46,6 @@ import com.android.launcher3.ShortcutAndWidgetContainer;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.anim.PropertyResetListener;
|
||||
import com.android.launcher3.dragndrop.DragLayer;
|
||||
import com.android.launcher3.uioverrides.BackgroundBlurController;
|
||||
import com.android.launcher3.util.Themes;
|
||||
|
||||
import java.util.List;
|
||||
@@ -222,14 +220,6 @@ public class FolderAnimationManager {
|
||||
Animator z = getAnimator(mFolder, View.TRANSLATION_Z, -mFolder.getElevation(), 0);
|
||||
play(a, z, mIsOpening ? midDuration : 0, midDuration);
|
||||
|
||||
BackgroundBlurController blurController = mLauncher.getBackgroundBlurController();
|
||||
int stateBackgroundBlur = mLauncher.getStateManager().getState()
|
||||
.getBackgroundBlurRadius(mLauncher);
|
||||
int folderBackgroundBlurAdjustment = blurController.getFolderBackgroundBlurAdjustment();
|
||||
play(a, ObjectAnimator.ofInt(blurController, BACKGROUND_BLUR, mIsOpening
|
||||
? stateBackgroundBlur + folderBackgroundBlurAdjustment
|
||||
: stateBackgroundBlur));
|
||||
|
||||
// Store clip variables
|
||||
CellLayout cellLayout = mContent.getCurrentCellLayout();
|
||||
boolean folderClipChildren = mFolder.getClipChildren();
|
||||
|
||||
Reference in New Issue
Block a user