g.smali
.class public Lcom/cleanmaster/gameboost/modle/g;
.super Lcom/cleanmaster/gameboost/modle/AbsGameModel;
.source "GameModel.java"
# instance fields
.field public d:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.registers 2
.prologue
.line 13
invoke-direct {p0}, Lcom/cleanmaster/gameboost/modle/AbsGameModel;-><init>()V
.line 17
const/4 v0, 0x1
iput v0, p0, Lcom/cleanmaster/gameboost/modle/g;->b:I
.line 18
return-void
.end method
# virtual methods
.method public a(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;
.registers 5
.prologue
const/4 v0, 0x0
.line 22
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
.line 23
if-nez v1, :cond_8
.line 32
:goto_7
return-object v0
.line 28
:cond_8
:try_start_8
iget-object v2, p0, Lcom/cleanmaster/gameboost/modle/g;->d:Ljava/lang/String;
invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->getApplicationIcon(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;
:try_end_d
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_8 .. :try_end_d} :catch_f
move-result-object v0
goto :goto_7
.line 29
:catch_f
move-exception v1
.line 30
invoke-virtual {v1}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
goto :goto_7
.end method
.method public b(Landroid/content/Context;)Ljava/lang/String;
.registers 5
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.prologue
.line 36
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
.line 37
if-nez v0, :cond_9
.line 38
const-string v0, ""
.line 46
:goto_8
return-object v0
.line 41
:cond_9
:try_start_9
iget-object v1, p0, Lcom/cleanmaster/gameboost/modle/g;->d:Ljava/lang/String;
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
.line 42
invoke-virtual {v1, v0}, Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;
move-result-object v0
invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
:try_end_17
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_9 .. :try_end_17} :catch_19
move-result-object v0
goto :goto_8
.line 43
:catch_19
move-exception v0
.line 44
invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
.line 46
const-string v0, ""
goto :goto_8
.end method