Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 793c3715 authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Stash transient taskbar upon icon drag" into tm-qpr-dev

parents e9127422 c0642616
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im
        if (mDisallowGlobalDrag) {
            AbstractFloatingView.closeAllOpenViewsExcept(mActivity, TYPE_TASKBAR_ALL_APPS);
        } else {
            // stash the transient taskbar
            mControllers.taskbarStashController.updateAndAnimateTransientTaskbar(true);

            AbstractFloatingView.closeAllOpenViews(mActivity);
        }

@@ -413,6 +416,9 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im
                    if (dragEvent.getResult()) {
                        maybeOnDragEnd();
                    } else {
                        // un-stash the transient taskbar in case drag and drop was canceled
                        mControllers.taskbarStashController.updateAndAnimateTransientTaskbar(false);

                        // This will take care of calling maybeOnDragEnd() after the animation
                        animateGlobalDragViewToOriginalPosition(btv, dragEvent);
                    }