ViewHelper.smali

.class public Lcom/mopub/mobileads/ViewHelper;
.super Ljava/lang/Object;


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static getVastVideoProgressBarWidget(Lcom/mopub/nativeads/MediaLayout;)Lcom/mopub/mobileads/VastVideoProgressBarWidget;
    .registers 6

    const/4 v0, 0x0

    if-nez p0, :cond_4

    return-object v0

    :cond_4
    invoke-virtual {p0}, Lcom/mopub/nativeads/MediaLayout;->getChildCount()I

    move-result v1

    const/4 v2, 0x0

    :goto_9
    if-ge v2, v1, :cond_19

    invoke-virtual {p0, v2}, Lcom/mopub/nativeads/MediaLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    instance-of v4, v3, Lcom/mopub/mobileads/VastVideoProgressBarWidget;

    if-eqz v4, :cond_16

    check-cast v3, Lcom/mopub/mobileads/VastVideoProgressBarWidget;

    return-object v3

    :cond_16
    add-int/lit8 v2, v2, 0x1

    goto :goto_9

    :cond_19
    return-object v0
.end method

.method public static resetVastVideoProgressBarWidgetLastProgress(Lcom/mopub/mobileads/VastVideoProgressBarWidget;)Z
    .registers 2

    const/4 v0, 0x0

    if-nez p0, :cond_4

    return v0

    :cond_4
    invoke-virtual {p0}, Lcom/mopub/mobileads/VastVideoProgressBarWidget;->getImageViewDrawable()Lcom/mopub/mobileads/resource/ProgressBarDrawable;

    move-result-object p0

    if-eqz p0, :cond_f

    invoke-virtual {p0}, Lcom/mopub/mobileads/resource/ProgressBarDrawable;->reset()V

    const/4 p0, 0x1

    return p0

    :cond_f
    return v0
.end method