RealTimeLocationManager$2.smali

.class Lio/rong/imlib/location/RealTimeLocationManager$2;
.super Ljava/lang/Object;
.source "RealTimeLocationManager.java"

# interfaces
.implements Lio/rong/imlib/ModuleManager$ConnectivityStateChangedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/rong/imlib/location/RealTimeLocationManager;->init(Landroid/content/Context;Lio/rong/imlib/RongIMClient$OnReceiveMessageListener;Lio/rong/imlib/IHandler;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lio/rong/imlib/location/RealTimeLocationManager;


# direct methods
.method constructor <init>(Lio/rong/imlib/location/RealTimeLocationManager;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lio/rong/imlib/location/RealTimeLocationManager$2;->this$0:Lio/rong/imlib/location/RealTimeLocationManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onChanged(Lio/rong/imlib/RongIMClient$ConnectionStatusListener$ConnectionStatus;)V
    .registers 4

    if-eqz p1, :cond_3a

    .line 1
    sget-object v0, Lio/rong/imlib/RongIMClient$ConnectionStatusListener$ConnectionStatus;->KICKED_OFFLINE_BY_OTHER_CLIENT:Lio/rong/imlib/RongIMClient$ConnectionStatusListener$ConnectionStatus;

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

    move-result p1

    if-eqz p1, :cond_3a

    .line 2
    iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocationManager$2;->this$0:Lio/rong/imlib/location/RealTimeLocationManager;

    # getter for: Lio/rong/imlib/location/RealTimeLocationManager;->mInsMap:Ljava/util/HashMap;
    invoke-static {p1}, Lio/rong/imlib/location/RealTimeLocationManager;->access$300(Lio/rong/imlib/location/RealTimeLocationManager;)Ljava/util/HashMap;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object p1

    .line 3
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_18
    :goto_18
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lio/rong/imlib/location/RealTimeLocationManager$RealTimeInstance;

    .line 4
    iget-object v1, v0, Lio/rong/imlib/location/RealTimeLocationManager$RealTimeInstance;->realTimeLocation:Lio/rong/imlib/location/RealTimeLocation;

    if-eqz v1, :cond_18

    invoke-virtual {v1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;

    move-result-object v1

    if-eqz v1, :cond_18

    .line 5
    iget-object v0, v0, Lio/rong/imlib/location/RealTimeLocationManager$RealTimeInstance;->realTimeLocation:Lio/rong/imlib/location/RealTimeLocation;

    invoke-virtual {v0}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;

    move-result-object v0

    const/16 v1, 0xd

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_18

    :cond_3a
    return-void
.end method