CdnImage.smali
.class public Lcom/avast/android/feed/nativead/image/CdnImage;
.super Lcom/avast/android/feed/nativead/image/Image;
# static fields
.field private static final d:Ljava/util/regex/Pattern;
# direct methods
.method static constructor <clinit>()V
.registers 1
const-string v0, ".+?_w(\\d+)_h(\\d+).+"
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v0
sput-object v0, Lcom/avast/android/feed/nativead/image/CdnImage;->d:Ljava/util/regex/Pattern;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.registers 4
invoke-direct {p0}, Lcom/avast/android/feed/nativead/image/Image;-><init>()V
iput-object p1, p0, Lcom/avast/android/feed/nativead/image/Image;->a:Ljava/lang/String;
sget-object v0, Lcom/avast/android/feed/nativead/image/CdnImage;->d:Ljava/util/regex/Pattern;
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object p1
invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z
move-result v0
if-eqz v0, :cond_2e
invoke-virtual {p1}, Ljava/util/regex/Matcher;->groupCount()I
move-result v0
const/4 v1, 0x2
if-ne v0, v1, :cond_2e
const/4 v0, 0x1
invoke-virtual {p1, v0}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
iput v0, p0, Lcom/avast/android/feed/nativead/image/Image;->b:I
invoke-virtual {p1, v1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p1
iput p1, p0, Lcom/avast/android/feed/nativead/image/Image;->c:I
goto :goto_33
:cond_2e
const/4 p1, -0x1
iput p1, p0, Lcom/avast/android/feed/nativead/image/Image;->b:I
iput p1, p0, Lcom/avast/android/feed/nativead/image/Image;->c:I
:goto_33
return-void
.end method