38 lines
1.6 KiB
Java
38 lines
1.6 KiB
Java
|
package com.discord.utilities.animations;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import android.animation.AnimatorListenerAdapter;
|
||
|
import android.view.ViewPropertyAnimator;
|
||
|
import d0.k;
|
||
|
import kotlin.Unit;
|
||
|
import kotlinx.coroutines.CancellableContinuation;
|
||
|
/* compiled from: AnimationCoroutineUtils.kt */
|
||
|
public final class AnimationCoroutineUtilsKt$await$$inlined$suspendCancellableCoroutine$lambda$2 extends AnimatorListenerAdapter {
|
||
|
public final /* synthetic */ CancellableContinuation $cont;
|
||
|
public final /* synthetic */ ViewPropertyAnimator $this_await$inlined;
|
||
|
|
||
|
public AnimationCoroutineUtilsKt$await$$inlined$suspendCancellableCoroutine$lambda$2(CancellableContinuation cancellableContinuation, ViewPropertyAnimator viewPropertyAnimator) {
|
||
|
this.$cont = cancellableContinuation;
|
||
|
this.$this_await$inlined = viewPropertyAnimator;
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||
|
public void onAnimationCancel(Animator animator) {
|
||
|
this.$this_await$inlined.setListener(null);
|
||
|
if (this.$cont.a()) {
|
||
|
this.$cont.j(null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||
|
public void onAnimationEnd(Animator animator) {
|
||
|
this.$this_await$inlined.setListener(null);
|
||
|
if (this.$cont.a()) {
|
||
|
CancellableContinuation cancellableContinuation = this.$cont;
|
||
|
Unit unit = Unit.a;
|
||
|
k.a aVar = k.i;
|
||
|
cancellableContinuation.resumeWith(k.m78constructorimpl(unit));
|
||
|
}
|
||
|
}
|
||
|
}
|