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

Commit 9a00cdf1 authored by Merissa Mitchell's avatar Merissa Mitchell Committed by Android (Google) Code Review
Browse files

Merge "Revert "[Pip2] Add a new interface method to IPipAnimationListener"" into main

parents 95d0bed6 700990be
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -38,9 +38,4 @@ oneway interface IPipAnimationListener {
     * Notifies the listener that user leaves PiP by tapping on the expand button.
     * Notifies the listener that user leaves PiP by tapping on the expand button.
     */
     */
    void onExpandPip();
    void onExpandPip();

    /**
     * Notifies the listener that the PiP has exited.
     */
    void onExitPip();
}
}
+0 −10
Original line number Original line Diff line number Diff line
@@ -238,11 +238,6 @@ public class PipController implements PipTransitionController.PipTransitionCallb
         * Notifies the listener that user leaves PiP by tapping on the expand button.
         * Notifies the listener that user leaves PiP by tapping on the expand button.
         */
         */
        void onExpandPip();
        void onExpandPip();

        /**
         * Notifies the listener that the PiP has exited.
         */
        void onExitPip();
    }
    }


    /**
    /**
@@ -1312,11 +1307,6 @@ public class PipController implements PipTransitionController.PipTransitionCallb
            public void onExpandPip() {
            public void onExpandPip() {
                mListener.call(l -> l.onExpandPip());
                mListener.call(l -> l.onExpandPip());
            }
            }

            @Override
            public void onExitPip() {
                mListener.call(l -> l.onExitPip());
            }
        };
        };


        IPipImpl(PipController controller) {
        IPipImpl(PipController controller) {
+0 −13
Original line number Original line Diff line number Diff line
@@ -151,11 +151,6 @@ public class PipController implements ConfigurationChangeListener,
         * Notifies the listener that user leaves PiP by tapping on the expand button.
         * Notifies the listener that user leaves PiP by tapping on the expand button.
         */
         */
        void onExpandPip();
        void onExpandPip();

        /**
         * Notifies the listener that the PiP has exited.
         */
        void onExitPip();
    }
    }


    private PipController(Context context,
    private PipController(Context context,
@@ -632,9 +627,6 @@ public class PipController implements ConfigurationChangeListener,
                for (Consumer<Boolean> listener : mOnIsInPipStateChangedListeners) {
                for (Consumer<Boolean> listener : mOnIsInPipStateChangedListeners) {
                    listener.accept(false /* inPip */);
                    listener.accept(false /* inPip */);
                }
                }
                if (mPipRecentsAnimationListener != null) {
                    mPipRecentsAnimationListener.onExitPip();
                }
                break;
                break;
            case PipTransitionState.SCHEDULED_BOUNDS_CHANGE:
            case PipTransitionState.SCHEDULED_BOUNDS_CHANGE:
                mWaitingToPlayDisplayChangeBoundsUpdate =
                mWaitingToPlayDisplayChangeBoundsUpdate =
@@ -793,11 +785,6 @@ public class PipController implements ConfigurationChangeListener,
            public void onExpandPip() {
            public void onExpandPip() {
                mListener.call(l -> l.onExpandPip());
                mListener.call(l -> l.onExpandPip());
            }
            }

            @Override
            public void onExitPip() {
                mListener.call(l -> l.onExitPip());
            }
        };
        };


        IPipImpl(PipController controller) {
        IPipImpl(PipController controller) {
+0 −2
Original line number Original line Diff line number Diff line
@@ -207,8 +207,6 @@ public class PipControllerTest extends ShellTestCase {
            public void onPipResourceDimensionsChanged(int cornerRadius, int shadowRadius) {}
            public void onPipResourceDimensionsChanged(int cornerRadius, int shadowRadius) {}
            @Override
            @Override
            public void onExpandPip() {}
            public void onExpandPip() {}
            @Override
            public void onExitPip() {}
        });
        });
        assertTrue(mPipController.hasPinnedStackAnimationListener());
        assertTrue(mPipController.hasPinnedStackAnimationListener());
        // Create initial interface
        // Create initial interface