diff --git a/app/src/main/java/foundation/e/blisslauncher/core/customviews/BlissDragShadowBuilder.java b/app/src/main/java/foundation/e/blisslauncher/core/customviews/BlissDragShadowBuilder.java index da870aeae2cfe3b26521cc4f5bfa2dff5cf69f9d..d81c756470f2ab85ff6c7bf45c991ed55fb812a3 100755 --- a/app/src/main/java/foundation/e/blisslauncher/core/customviews/BlissDragShadowBuilder.java +++ b/app/src/main/java/foundation/e/blisslauncher/core/customviews/BlissDragShadowBuilder.java @@ -65,10 +65,12 @@ public class BlissDragShadowBuilder extends View.DragShadowBuilder { @Override public void onDrawShadow(Canvas canvas) { + canvas.save(); // Draws the ColorDrawable in the Canvas passed in from the system. canvas.scale(mScaleFactor.x / (float) getView().getWidth(), mScaleFactor.y / (float) getView().getHeight()); getView().draw(canvas); + canvas.restore(); } } diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index 6eaeb6a0fa457ce7decc072902b30701d0df3ea5..30ff2d7505835081e2cd21efb7b215968b152449 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -1777,7 +1777,7 @@ public class LauncherActivity extends AppCompatActivity implements dragShadowBuilder = new BlissDragShadowBuilder( icon, (event.getX() < 0 ? 0 : event.getX()), (event.getY() < 0 ? 0 : event.getY())); - icon.startDrag(null, dragShadowBuilder, iconView, 0); + icon.startDragAndDrop(null, dragShadowBuilder, iconView, 0); if (iconView.getParent().getParent() instanceof HorizontalPager) { parentPage = getCurrentAppsPageNumber(); } else {