CustomEventNativeAdapter$1.smali
.class Lcom/mopub/nativeads/CustomEventNativeAdapter$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mopub/nativeads/CustomEventNativeAdapter;-><init>(Lcom/mopub/nativeads/CustomEventNative$CustomEventNativeListener;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mopub/nativeads/CustomEventNativeAdapter;
# direct methods
.method constructor <init>(Lcom/mopub/nativeads/CustomEventNativeAdapter;)V
.registers 2
.line 45
iput-object p1, p0, Lcom/mopub/nativeads/CustomEventNativeAdapter$1;->this$0:Lcom/mopub/nativeads/CustomEventNativeAdapter;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 6
.line 48
iget-object v0, p0, Lcom/mopub/nativeads/CustomEventNativeAdapter$1;->this$0:Lcom/mopub/nativeads/CustomEventNativeAdapter;
# getter for: Lcom/mopub/nativeads/CustomEventNativeAdapter;->mCompleted:Z
invoke-static {v0}, Lcom/mopub/nativeads/CustomEventNativeAdapter;->access$000(Lcom/mopub/nativeads/CustomEventNativeAdapter;)Z
move-result v0
if-eqz v0, :cond_9
return-void
.line 51
:cond_9
sget-object v0, Lcom/mopub/common/logging/MoPubLog$SdkLogEvent;->CUSTOM:Lcom/mopub/common/logging/MoPubLog$SdkLogEvent;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "CustomEventNativeAdapter() failed with code "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
sget-object v4, Lcom/mopub/mobileads/MoPubErrorCode;->NETWORK_TIMEOUT:Lcom/mopub/mobileads/MoPubErrorCode;
.line 52
invoke-virtual {v4}, Lcom/mopub/mobileads/MoPubErrorCode;->getIntCode()I
move-result v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v4, " and message "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
sget-object v4, Lcom/mopub/mobileads/MoPubErrorCode;->NETWORK_TIMEOUT:Lcom/mopub/mobileads/MoPubErrorCode;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
aput-object v3, v1, v2
.line 51
invoke-static {v0, v1}, Lcom/mopub/common/logging/MoPubLog;->log(Lcom/mopub/common/logging/MoPubLog$MPLogEventType;[Ljava/lang/Object;)V
.line 53
iget-object v0, p0, Lcom/mopub/nativeads/CustomEventNativeAdapter$1;->this$0:Lcom/mopub/nativeads/CustomEventNativeAdapter;
invoke-virtual {v0}, Lcom/mopub/nativeads/CustomEventNativeAdapter;->stopLoading()V
.line 54
iget-object v0, p0, Lcom/mopub/nativeads/CustomEventNativeAdapter$1;->this$0:Lcom/mopub/nativeads/CustomEventNativeAdapter;
# getter for: Lcom/mopub/nativeads/CustomEventNativeAdapter;->mExternalListener:Lcom/mopub/nativeads/CustomEventNative$CustomEventNativeListener;
invoke-static {v0}, Lcom/mopub/nativeads/CustomEventNativeAdapter;->access$100(Lcom/mopub/nativeads/CustomEventNativeAdapter;)Lcom/mopub/nativeads/CustomEventNative$CustomEventNativeListener;
move-result-object v0
sget-object v1, Lcom/mopub/nativeads/NativeErrorCode;->NETWORK_TIMEOUT:Lcom/mopub/nativeads/NativeErrorCode;
invoke-interface {v0, v1}, Lcom/mopub/nativeads/CustomEventNative$CustomEventNativeListener;->onNativeAdFailed(Lcom/mopub/nativeads/NativeErrorCode;)V
return-void
.end method