GooglePlayServicesNativeAdvanced$2.smali

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

# interfaces
.implements Lcom/google/android/gms/ads/formats/NativeContentAd$OnContentAdLoadedListener;


# 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$2;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

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

    return-void
.end method


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

    const-string v0, "TradPlus"

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

    .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$2;->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$2;->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$2;->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$2;->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$2;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

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

    move-result-object v1

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

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

    move-result-object v2

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

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

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

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

    move-result-object v1

    # invokes: Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->populateContentAdView(Lcom/google/android/gms/ads/formats/NativeContentAd;Lcom/google/android/gms/ads/formats/NativeContentAdView;)V
    invoke-static {v0, p1, v1}, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;->access$1000(Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;Lcom/google/android/gms/ads/formats/NativeContentAd;Lcom/google/android/gms/ads/formats/NativeContentAdView;)V

    .line 5
    iget-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$2;->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_67

    .line 6
    iget-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced$2;->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$2;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNativeAdvanced;

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

    move-result-object v0

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

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

    const/4 v0, 0x1

    invoke-static {v0}, 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_67
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_67} :catch_67

    :catch_67
    :cond_67
    return-void
.end method