mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Adding some wallpaper depth to drag and drop
Change-Id: Ib9acee6dcf8b2883cb66b65159d049bd8cbc2e8b
This commit is contained in:
@@ -17,6 +17,7 @@ package com.android.launcher3.states;
|
||||
|
||||
import static com.android.launcher3.states.RotationHelper.REQUEST_LOCK;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
@@ -76,6 +77,11 @@ public class SpringLoadedState extends LauncherState {
|
||||
return new ScaleAndTranslation(scale, 0, (desiredCellTop - actualCellTop) / scale);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDepth(Context context) {
|
||||
return 0.5f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScaleAndTranslation getHotseatScaleAndTranslation(Launcher launcher) {
|
||||
return new ScaleAndTranslation(1, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user