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

Commit 840675f1 authored by Sergey Pinkevich's avatar Sergey Pinkevich
Browse files

Use Display Context for dragging to Desktop animator

Bug: 438411321
Flag: EXEMPT small change, no flag is needed
Test: manually

Change-Id: I72a78aacaa7bd65e512ba2909c37abb7a99151fa
parent 33d33746
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2146,8 +2146,12 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel,
                    if (indicatorType != TO_FULLSCREEN_INDICATOR
                            || BubbleAnythingFlagHelper.enableBubbleToFullscreen()) {
                        if (mMoveToDesktopAnimator == null) {
                            Context displayContext = mDisplayController.getDisplayContext(
                                    ev.getDisplayId());
                            Context animatorContext =
                                    displayContext != null ? displayContext : mContext;
                            mMoveToDesktopAnimator = new MoveToDesktopAnimator(
                                    mContext, mDragToDesktopAnimationStartBounds,
                                    animatorContext, mDragToDesktopAnimationStartBounds,
                                    relevantDecor.getTaskInfo(), relevantDecor.getTaskSurface());
                            mDesktopTasksController.startDragToDesktop(relevantDecor.getTaskInfo(),
                                    mMoveToDesktopAnimator, relevantDecor.getTaskSurface(),