FFBroadcastReceiver.smali

.class public Lcom/dts/freefireth/FFBroadcastReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# static fields
.field public static final ACTION_LOCAL_NOTIFICATION:Ljava/lang/String; = "com.dts.freefireth.action.LOCAL_NOTIFICATION"


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


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

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

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

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_f

    invoke-static {p1}, Lcom/dts/freefireth/FFLocalNotification;->_rescheduleAllLocalNotifications(Landroid/content/Context;)V

    :cond_f
    const-string v0, "com.dts.freefireth.action.LOCAL_NOTIFICATION"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_30

    const-string v0, "LocalNotification"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p2

    if-nez p2, :cond_24

    return-void

    :cond_24
    invoke-virtual {p2, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p2

    check-cast p2, Lcom/dts/freefireth/_FFLocalNotification;

    if-nez p2, :cond_2d

    return-void

    :cond_2d
    invoke-static {p1, p2}, Lcom/dts/freefireth/FFLocalNotification;->_showLocalNotification(Landroid/content/Context;Lcom/dts/freefireth/_FFLocalNotification;)V

    :cond_30
    return-void
.end method