106 lines
2.8 KiB
Smali
106 lines
2.8 KiB
Smali
.class public final Lio/fabric/sdk/android/a/g/n;
|
|
.super Ljava/lang/Object;
|
|
.source "IconRequest.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final Wk:Ljava/lang/String;
|
|
|
|
.field public final baJ:I
|
|
|
|
.field public final height:I
|
|
|
|
.field public final width:I
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Ljava/lang/String;III)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lio/fabric/sdk/android/a/g/n;->Wk:Ljava/lang/String;
|
|
|
|
iput p2, p0, Lio/fabric/sdk/android/a/g/n;->baJ:I
|
|
|
|
iput p3, p0, Lio/fabric/sdk/android/a/g/n;->width:I
|
|
|
|
iput p4, p0, Lio/fabric/sdk/android/a/g/n;->height:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static x(Landroid/content/Context;Ljava/lang/String;)Lio/fabric/sdk/android/a/g/n;
|
|
.locals 5
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
:try_start_0
|
|
invoke-static {p0}, Lio/fabric/sdk/android/a/b/i;->aI(Landroid/content/Context;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wx()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Fabric"
|
|
|
|
const-string v3, "App icon resource ID is "
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v1, v2, v3}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
new-instance v1, Landroid/graphics/BitmapFactory$Options;
|
|
|
|
invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
|
|
|
|
new-instance p0, Lio/fabric/sdk/android/a/g/n;
|
|
|
|
iget v2, v1, Landroid/graphics/BitmapFactory$Options;->outWidth:I
|
|
|
|
iget v1, v1, Landroid/graphics/BitmapFactory$Options;->outHeight:I
|
|
|
|
invoke-direct {p0, p1, v0, v2, v1}, Lio/fabric/sdk/android/a/g/n;-><init>(Ljava/lang/String;III)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wx()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "Fabric"
|
|
|
|
const-string v1, "Failed to load icon"
|
|
|
|
invoke-interface {p1, v0, v1, p0}, Lio/fabric/sdk/android/l;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|