FeedFragment$runSlideInAnimation$1.smali

.class public final Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/ViewTreeObserver$OnPreDrawListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/avast/android/cleaner/fragment/FeedFragment;->B1()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic f:Lcom/avast/android/cleaner/fragment/FeedFragment;

.field final synthetic g:I

.field final synthetic h:Landroid/view/animation/DecelerateInterpolator;


# direct methods
.method constructor <init>(Lcom/avast/android/cleaner/fragment/FeedFragment;ILandroid/view/animation/DecelerateInterpolator;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/view/animation/DecelerateInterpolator;",
            ")V"
        }
    .end annotation

    iput-object p1, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->f:Lcom/avast/android/cleaner/fragment/FeedFragment;

    iput p2, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->g:I

    iput-object p3, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->h:Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreDraw()Z
    .registers 6

    iget-object v0, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->f:Lcom/avast/android/cleaner/fragment/FeedFragment;

    const/4 v4, 0x0

    sget v1, Lcom/avast/android/cleaner/R$id;->feed_container:I

    const/4 v4, 0x7

    invoke-virtual {v0, v1}, Lcom/avast/android/cleaner/fragment/FeedFragment;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v4, 0x7

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v0, :cond_1b

    const/4 v4, 0x7

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    const/4 v4, 0x3

    if-eqz v0, :cond_1b

    const/4 v4, 0x6

    invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    :cond_1b
    const/4 v4, 0x2

    iget-object v0, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->f:Lcom/avast/android/cleaner/fragment/FeedFragment;

    sget v1, Lcom/avast/android/cleaner/R$id;->feed_container:I

    const/4 v4, 0x2

    invoke-virtual {v0, v1}, Lcom/avast/android/cleaner/fragment/FeedFragment;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v4, 0x6

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    const/4 v4, 0x4

    const/4 v1, 0x0

    if-eqz v0, :cond_46

    const/4 v4, 0x1

    iget-object v2, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->f:Lcom/avast/android/cleaner/fragment/FeedFragment;

    sget v3, Lcom/avast/android/cleaner/R$id;->feed_container:I

    invoke-virtual {v2, v3}, Lcom/avast/android/cleaner/fragment/FeedFragment;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v2

    const/4 v4, 0x6

    check-cast v2, Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v2, :cond_41

    const/4 v4, 0x5

    invoke-virtual {v2}, Landroid/view/ViewGroup;->getHeight()I

    move-result v2

    int-to-float v2, v2

    goto :goto_43

    :cond_41
    const/4 v2, 0x0

    move v4, v2

    :goto_43
    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setTranslationY(F)V

    :cond_46
    iget-object v0, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->f:Lcom/avast/android/cleaner/fragment/FeedFragment;

    const/4 v4, 0x4

    sget v2, Lcom/avast/android/cleaner/R$id;->feed_container:I

    const/4 v4, 0x7

    invoke-virtual {v0, v2}, Lcom/avast/android/cleaner/fragment/FeedFragment;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v4, 0x5

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v0, :cond_78

    const/4 v4, 0x3

    invoke-static {v0}, Landroidx/core/view/ViewCompat;->c(Landroid/view/View;)Landroidx/core/view/ViewPropertyAnimatorCompat;

    move-result-object v0

    const/4 v4, 0x3

    invoke-virtual {v0, v1}, Landroidx/core/view/ViewPropertyAnimatorCompat;->k(F)Landroidx/core/view/ViewPropertyAnimatorCompat;

    iget v1, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->g:I

    int-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroidx/core/view/ViewPropertyAnimatorCompat;->d(J)Landroidx/core/view/ViewPropertyAnimatorCompat;

    const/4 v4, 0x1

    iget-object v1, p0, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;->h:Landroid/view/animation/DecelerateInterpolator;

    const/4 v4, 0x3

    invoke-virtual {v0, v1}, Landroidx/core/view/ViewPropertyAnimatorCompat;->e(Landroid/view/animation/Interpolator;)Landroidx/core/view/ViewPropertyAnimatorCompat;

    new-instance v1, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1$onPreDraw$1;

    invoke-direct {v1, p0}, Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1$onPreDraw$1;-><init>(Lcom/avast/android/cleaner/fragment/FeedFragment$runSlideInAnimation$1;)V

    const/4 v4, 0x3

    invoke-virtual {v0, v1}, Landroidx/core/view/ViewPropertyAnimatorCompat;->f(Landroidx/core/view/ViewPropertyAnimatorListener;)Landroidx/core/view/ViewPropertyAnimatorCompat;

    const/4 v4, 0x4

    const/4 v0, 0x0

    const/4 v4, 0x5

    return v0

    :cond_78
    const/4 v4, 0x3

    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->h()V

    const/4 v4, 0x3

    const/4 v0, 0x0

    throw v0
.end method