RNGooglePlacesModule$a.smali

.class public Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule$a;
.super Landroid/content/BroadcastReceiver;
.source "RNGooglePlacesModule.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation


# instance fields
.field public final synthetic a:Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;)V
    .registers 2

    iput-object p1, p0, Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule$a;->a:Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;

    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 4

    if-eqz p2, :cond_2a

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

    move-result-object p1

    const-string v0, "RNGooglePlaces_token_expired"

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

    move-result p1

    if-eqz p1, :cond_2a

    const/4 p1, -0x1

    const-string v0, "RNGooglePlaces_token_hash"

    invoke-virtual {p2, v0, p1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iget-object p2, p0, Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule$a;->a:Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;

    # getter for: Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;->tokenHash:I
    invoke-static {p2}, Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;->access$000(Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;)I

    move-result p2

    if-ne p2, p1, :cond_2a

    iget-object p1, p0, Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule$a;->a:Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;

    new-instance p2, Lcom/facebook/react/bridge/PromiseImpl;

    const/4 v0, 0x0

    invoke-direct {p2, v0, v0}, Lcom/facebook/react/bridge/PromiseImpl;-><init>(Lcom/facebook/react/bridge/Callback;Lcom/facebook/react/bridge/Callback;)V

    const-string v0, ""

    invoke-virtual {p1, v0, p2}, Lcom/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule;->lookUpPlaceByID(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V

    :cond_2a
    return-void
.end method