RealTimeLocation$8.smali
.class Lio/rong/imlib/location/RealTimeLocation$8;
.super Ljava/lang/Object;
.source "RealTimeLocation.java"
# interfaces
.implements Lio/rong/imlib/IRongCallback$ISendMessageCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/rong/imlib/location/RealTimeLocation;->sendLocationMessage()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/RealTimeLocation;
# direct methods
.method constructor <init>(Lio/rong/imlib/location/RealTimeLocation;)V
.registers 2
.line 1
iput-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onAttached(Lio/rong/imlib/model/Message;)V
.registers 2
return-void
.end method
.method public onError(Lio/rong/imlib/model/Message;Lio/rong/imlib/RongIMClient$ErrorCode;)V
.registers 5
.line 1
# getter for: Lio/rong/imlib/location/RealTimeLocation;->TAG:Ljava/lang/String;
invoke-static {}, Lio/rong/imlib/location/RealTimeLocation;->access$400()Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "sendLocationMessage error = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-static {p1, p2}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 2
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
if-eqz p1, :cond_40
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
const/16 p2, 0xd
invoke-virtual {p1, p2}, Landroid/os/Handler;->hasMessages(I)Z
move-result p1
if-nez p1, :cond_40
.line 3
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
# getter for: Lio/rong/imlib/location/RealTimeLocation;->mRefreshInterval:I
invoke-static {v0}, Lio/rong/imlib/location/RealTimeLocation;->access$200(Lio/rong/imlib/location/RealTimeLocation;)I
move-result v0
mul-int/lit8 v0, v0, 0x3
int-to-long v0, v0
invoke-virtual {p1, p2, v0, v1}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
:cond_40
return-void
.end method
.method public onSuccess(Lio/rong/imlib/model/Message;)V
.registers 3
.line 1
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
if-eqz p1, :cond_1f
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
const/16 v0, 0xd
invoke-virtual {p1, v0}, Landroid/os/Handler;->hasMessages(I)Z
move-result p1
if-eqz p1, :cond_1f
.line 2
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$8;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Lio/rong/imlib/stateMachine/StateMachine;->getHandler()Landroid/os/Handler;
move-result-object p1
invoke-virtual {p1, v0}, Landroid/os/Handler;->removeMessages(I)V
:cond_1f
return-void
.end method