GameRepository$PackageReceiver.smali

.class public final Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository$PackageReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "PackageReceiver"
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;


# direct methods
.method public constructor <init>(Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 75
    iput-object p1, p0, Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository$PackageReceiver;->a:Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 5

    if-eqz p1, :cond_4d

    if-nez p2, :cond_5

    goto :goto_4d

    .line 83
    :cond_5
    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    if-nez p1, :cond_c

    return-void

    .line 89
    :cond_c
    invoke-virtual {p1}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object p1

    .line 90
    move-object v0, p1

    check-cast v0, Ljava/lang/CharSequence;

    if-eqz v0, :cond_1e

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v0

    if-nez v0, :cond_1c

    goto :goto_1e

    :cond_1c
    const/4 v0, 0x0

    goto :goto_1f

    :cond_1e
    :goto_1e
    const/4 v0, 0x1

    :goto_1f
    if-eqz v0, :cond_22

    return-void

    .line 98
    :cond_22
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.PACKAGE_ADDED"

    invoke-static {v1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_38

    .line 99
    iget-object p2, p0, Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository$PackageReceiver;->a:Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;

    .line 1021
    iget-object p2, p2, Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;->a:Lcom/imo/android/imoim/gamecenter/viewmodel/b;

    if-eqz p2, :cond_37

    .line 99
    invoke-interface {p2, p1}, Lcom/imo/android/imoim/gamecenter/viewmodel/b;->b(Ljava/lang/String;)V

    :cond_37
    return-void

    .line 101
    :cond_38
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p2

    const-string v0, "android.intent.action.PACKAGE_REMOVED"

    invoke-static {v0, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_4d

    .line 102
    iget-object p2, p0, Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository$PackageReceiver;->a:Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;

    .line 2021
    iget-object p2, p2, Lcom/imo/android/imoim/gamecenter/viewmodel/GameRepository;->a:Lcom/imo/android/imoim/gamecenter/viewmodel/b;

    if-eqz p2, :cond_4d

    .line 102
    invoke-interface {p2, p1}, Lcom/imo/android/imoim/gamecenter/viewmodel/b;->c(Ljava/lang/String;)V

    :cond_4d
    :goto_4d
    return-void
.end method