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

Commit 4fba1c44 authored by Tiger Huang's avatar Tiger Huang Committed by Android (Google) Code Review
Browse files

Merge "Prevent adding methods in WindowInsetsAnimationController" into sc-v2-dev

parents dce45cca 4ba9fc61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ public interface InsetsAnimationControlCallbacks {
     *     <li>Dispatch {@link WindowInsetsAnimationControlListener#onReady}</li>
     * </ul>
     */
    <T extends InsetsAnimationControlRunner & WindowInsetsAnimationController>
    <T extends InsetsAnimationControlRunner & InternalInsetsAnimationController>
    void startAnimation(T runner, WindowInsetsAnimationControlListener listener, int types,
            WindowInsetsAnimation animation, Bounds bounds);

+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ import java.util.Objects;
 * @hide
 */
@VisibleForTesting
public class InsetsAnimationControlImpl implements WindowInsetsAnimationController,
public class InsetsAnimationControlImpl implements InternalInsetsAnimationController,
        InsetsAnimationControlRunner {

    private static final String TAG = "InsetsAnimationCtrlImpl";
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ public class InsetsAnimationThreadControlRunner implements InsetsAnimationContro

        @Override
        @UiThread
        public <T extends InsetsAnimationControlRunner & WindowInsetsAnimationController>
        public <T extends InsetsAnimationControlRunner & InternalInsetsAnimationController>
        void startAnimation(T runner, WindowInsetsAnimationControlListener listener, int types,
                WindowInsetsAnimation animation, Bounds bounds) {
            // Animation will be started in constructor already.
+2 −2
Original line number Diff line number Diff line
@@ -632,7 +632,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
                        runningAnimations.add(runner.getAnimation());
                    }

                    if (((WindowInsetsAnimationController) runner).applyChangeInsets(state)) {
                    if (((InternalInsetsAnimationController) runner).applyChangeInsets(state)) {
                        finishedAnimations.add(runner.getAnimation());
                    }
                }
@@ -1513,7 +1513,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation

    @VisibleForTesting
    @Override
    public <T extends InsetsAnimationControlRunner & WindowInsetsAnimationController>
    public <T extends InsetsAnimationControlRunner & InternalInsetsAnimationController>
    void startAnimation(T runner, WindowInsetsAnimationControlListener listener, int types,
            WindowInsetsAnimation animation, Bounds bounds) {
        mHost.dispatchWindowInsetsAnimationPrepare(animation);
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ import android.view.animation.Interpolator;
 * @hide
 */
public class InsetsResizeAnimationRunner implements InsetsAnimationControlRunner,
        WindowInsetsAnimationController, WindowInsetsAnimationControlListener {
        InternalInsetsAnimationController, WindowInsetsAnimationControlListener {

    private final InsetsState mFromState;
    private final InsetsState mToState;
Loading