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

Commit 5b3044b6 authored by Steve Elliott's avatar Steve Elliott
Browse files

Deprecate CrossFadeHelper Runnable callbacks

Flag: NA
Bug: 278765923
Test: n/a - no code changes
Change-Id: I7e952d62781d214e94205282b3e4be3d2936d3b5
parent 12a5e18b
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -48,6 +48,13 @@ public class CrossFadeHelper {
        fadeOut(view, duration, delay, (Runnable) null);
        fadeOut(view, duration, delay, (Runnable) null);
    }
    }


    /**
     * Perform a fade-out animation, invoking {@code endRunnable} when the animation ends. It will
     * not be invoked if the animation is cancelled.
     *
     * @deprecated Use {@link #fadeOut(View, long, int, Animator.AnimatorListener)} instead.
     */
    @Deprecated
    public static void fadeOut(final View view, long duration, int delay,
    public static void fadeOut(final View view, long duration, int delay,
            @Nullable final Runnable endRunnable) {
            @Nullable final Runnable endRunnable) {
        view.animate().cancel();
        view.animate().cancel();
@@ -155,6 +162,13 @@ public class CrossFadeHelper {
        fadeIn(view, duration, delay, /* endRunnable= */ (Runnable) null);
        fadeIn(view, duration, delay, /* endRunnable= */ (Runnable) null);
    }
    }


    /**
     * Perform a fade-in animation, invoking {@code endRunnable} when the animation ends. It will
     * not be invoked if the animation is cancelled.
     *
     * @deprecated Use {@link #fadeIn(View, long, int, Animator.AnimatorListener)} instead.
     */
    @Deprecated
    public static void fadeIn(final View view, long duration, int delay,
    public static void fadeIn(final View view, long duration, int delay,
            @Nullable Runnable endRunnable) {
            @Nullable Runnable endRunnable) {
        view.animate().cancel();
        view.animate().cancel();