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

Commit c0888dcb authored by Evan Rosky's avatar Evan Rosky
Browse files

FreeformHandler should just intercept, not claim animations

There are already animations for most of these operations (eg. in
launcher), so instead of "claiming" the transition animation
and doing nothing, this should just update state (window decor)
and then let other handlers play the animations.

Bug: 241486751
Test: launch app from launcher, go back.
Change-Id: Ic5d01b76c04d6adab484d53d24d1a89b001a4c80
parent a97e6db8
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -122,7 +122,6 @@ public class FreeformTaskTransitionHandler
                    break;
                    break;
                case WindowManager.TRANSIT_TO_BACK:
                case WindowManager.TRANSIT_TO_BACK:
                case WindowManager.TRANSIT_TO_FRONT:
                case WindowManager.TRANSIT_TO_FRONT:
                    transitionHandled = true;
                    break;
                    break;
            }
            }
        }
        }
@@ -147,7 +146,9 @@ public class FreeformTaskTransitionHandler
            return false;
            return false;
        }
        }
        mFreeformTaskListener.createWindowDecoration(change, startT, finishT);
        mFreeformTaskListener.createWindowDecoration(change, startT, finishT);
        return true;

        // Intercepted transition to manage the window decorations. Let other handlers animate.
        return false;
    }
    }


    private boolean startCloseTransition(
    private boolean startCloseTransition(
@@ -164,7 +165,8 @@ public class FreeformTaskTransitionHandler
            windowDecors.add(windowDecor);
            windowDecors.add(windowDecor);
        }
        }


        return true;
        // Intercepted transition to manage the window decorations. Let other handlers animate.
        return false;
    }
    }


    private boolean startChangeTransition(
    private boolean startChangeTransition(