Adding some wallpaper depth to drag and drop

Change-Id: Ib9acee6dcf8b2883cb66b65159d049bd8cbc2e8b
This commit is contained in:
Sunny Goyal
2020-03-24 12:13:17 -07:00
parent ba1a2b9b62
commit 95613d93a2

View File

@@ -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);