GooglePlayServicesNativeAdvanced$1.smali

.class Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;
.super Ljava/lang/Object;
.source "GooglePlayServicesNativeAdvanced.java"

# interfaces
.implements Lcom/google/android/gms/ads/formats/NativeAppInstallAd$OnAppInstallAdLoadedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->loadAdView(Landroid/content/Context;Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;Ljava/util/Map;Ljava/util/Map;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;


# direct methods
.method constructor <init>(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

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

    return-void
.end method


# virtual methods
.method public onAppInstallAdLoaded(Lcom/google/android/gms/ads/formats/NativeAppInstallAd;)V
    .registers 6

    const-string v0, "TradPlus"

    const-string v1, "Google Play Services native ad onAppInstallAdLoaded."

    .line 1
    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 2
    :try_start_7
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mAdWidth:I
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->density:F
    invoke-static {v2}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$100(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)F

    move-result v2

    mul-float v1, v1, v2

    float-to-int v1, v1

    iget-object v2, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mAdHeight:I
    invoke-static {v2}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$200(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)I

    move-result v2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->density:F
    invoke-static {v3}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$100(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)F

    move-result v3

    mul-float v2, v2, v3

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 3
    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAdViewEx:Landroid/widget/RelativeLayout;
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$300(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Landroid/widget/RelativeLayout;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_50

    .line 4
    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAppInstallAdView:Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$400(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;

    move-result-object v1

    iget-object v3, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAdViewEx:Landroid/widget/RelativeLayout;
    invoke-static {v3}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$300(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Landroid/widget/RelativeLayout;

    move-result-object v3

    invoke-virtual {v1, v3, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 5
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAppInstallAdView:Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$400(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;

    move-result-object v1

    # invokes: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->populateAppInstallAdView(Lcom/google/android/gms/ads/formats/NativeAppInstallAd;Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;Z)V
    invoke-static {v0, p1, v1, v2}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$500(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;Lcom/google/android/gms/ads/formats/NativeAppInstallAd;Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;Z)V

    goto :goto_6b

    .line 6
    :cond_50
    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAppInstallAdView:Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$400(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;

    move-result-object v1

    iget-object v3, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAdView:Landroid/widget/RelativeLayout;
    invoke-static {v3}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$600(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Landroid/widget/RelativeLayout;

    move-result-object v3

    invoke-virtual {v1, v3, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 7
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    iget-object v1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAppInstallAdView:Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;
    invoke-static {v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$400(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;

    move-result-object v1

    const/4 v3, 0x1

    # invokes: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->populateAppInstallAdView(Lcom/google/android/gms/ads/formats/NativeAppInstallAd;Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;Z)V
    invoke-static {v0, p1, v1, v3}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$500(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;Lcom/google/android/gms/ads/formats/NativeAppInstallAd;Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;Z)V

    .line 8
    :goto_6b
    iget-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeListener:Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;
    invoke-static {p1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$700(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;

    move-result-object p1

    if-eqz p1, :cond_8b

    .line 9
    iget-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeListener:Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;
    invoke-static {p1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$700(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;

    move-result-object p1

    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mNativeAppInstallAdView:Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$400(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;)Lcom/google/android/gms/ads/formats/NativeAppInstallAdView;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/tradplus/ads/mobileads/CustomEventAdView$CustomEventAdViewListener;->onAdViewLoaded(Landroid/view/View;)V

    .line 10
    iget-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    # setter for: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->mIsContentAdView:Ljava/lang/Boolean;
    invoke-static {p1, v0}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$802(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;Ljava/lang/Boolean;)Ljava/lang/Boolean;
    :try_end_8b
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_8b} :catch_8b

    :catch_8b
    :cond_8b
    return-void
.end method