RealTimeLocation$4.smali
.class Lio/rong/imlib/location/RealTimeLocation$4;
.super Ljava/lang/Object;
.source "RealTimeLocation.java"
# interfaces
.implements Landroid/location/LocationListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/rong/imlib/location/RealTimeLocation;->gpsInit(Landroid/content/Context;)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$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onLocationChanged(Landroid/location/Location;)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 v0
const-string v1, "onLocationChanged"
invoke-static {v0, v1}, Lio/rong/common/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I
if-eqz p1, :cond_1d
.line 2
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Landroid/location/Location;->getLatitude()D
move-result-wide v1
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mLatitude:D
invoke-static {v0, v1, v2}, Lio/rong/imlib/location/RealTimeLocation;->access$502(Lio/rong/imlib/location/RealTimeLocation;D)D
.line 3
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Landroid/location/Location;->getLongitude()D
move-result-wide v1
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mLongitude:D
invoke-static {v0, v1, v2}, Lio/rong/imlib/location/RealTimeLocation;->access$602(Lio/rong/imlib/location/RealTimeLocation;D)D
:cond_1d
return-void
.end method
.method public onProviderDisabled(Ljava/lang/String;)V
.registers 3
.line 1
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
const/4 v0, 0x0
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mGpsEnable:Z
invoke-static {p1, v0}, Lio/rong/imlib/location/RealTimeLocation;->access$702(Lio/rong/imlib/location/RealTimeLocation;Z)Z
.line 2
iget-object p1, p0, Lio/rong/imlib/location/RealTimeLocation$4;->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, 0xe
invoke-virtual {p1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
return-void
.end method
.method public onProviderEnabled(Ljava/lang/String;)V
.registers 5
.line 1
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
const/4 v1, 0x1
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mGpsEnable:Z
invoke-static {v0, v1}, Lio/rong/imlib/location/RealTimeLocation;->access$702(Lio/rong/imlib/location/RealTimeLocation;Z)Z
.line 2
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
# getter for: Lio/rong/imlib/location/RealTimeLocation;->mContext:Landroid/content/Context;
invoke-static {v0}, Lio/rong/imlib/location/RealTimeLocation;->access$800(Lio/rong/imlib/location/RealTimeLocation;)Landroid/content/Context;
move-result-object v0
const-string v1, "android.permission.ACCESS_FINE_LOCATION"
invoke-static {v0, v1}, Landroidx/core/content/b;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
if-eqz v0, :cond_2c
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
.line 3
# getter for: Lio/rong/imlib/location/RealTimeLocation;->mContext:Landroid/content/Context;
invoke-static {v0}, Lio/rong/imlib/location/RealTimeLocation;->access$800(Lio/rong/imlib/location/RealTimeLocation;)Landroid/content/Context;
move-result-object v0
const-string v1, "android.permission.ACCESS_COARSE_LOCATION"
invoke-static {v0, v1}, Landroidx/core/content/b;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
if-eqz v0, :cond_2c
.line 4
# 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
const-string v0, "permission is not granted"
invoke-static {p1, v0}, Lio/rong/common/RLog;->e(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 5
:cond_2c
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
# getter for: Lio/rong/imlib/location/RealTimeLocation;->mLocationManager:Landroid/location/LocationManager;
invoke-static {v0}, Lio/rong/imlib/location/RealTimeLocation;->access$900(Lio/rong/imlib/location/RealTimeLocation;)Landroid/location/LocationManager;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/location/LocationManager;->getLastKnownLocation(Ljava/lang/String;)Landroid/location/Location;
move-result-object p1
if-eqz p1, :cond_4a
.line 6
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Landroid/location/Location;->getLatitude()D
move-result-wide v1
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mLatitude:D
invoke-static {v0, v1, v2}, Lio/rong/imlib/location/RealTimeLocation;->access$502(Lio/rong/imlib/location/RealTimeLocation;D)D
.line 7
iget-object v0, p0, Lio/rong/imlib/location/RealTimeLocation$4;->this$0:Lio/rong/imlib/location/RealTimeLocation;
invoke-virtual {p1}, Landroid/location/Location;->getLongitude()D
move-result-wide v1
# setter for: Lio/rong/imlib/location/RealTimeLocation;->mLongitude:D
invoke-static {v0, v1, v2}, Lio/rong/imlib/location/RealTimeLocation;->access$602(Lio/rong/imlib/location/RealTimeLocation;D)D
:cond_4a
return-void
.end method
.method public onStatusChanged(Ljava/lang/String;ILandroid/os/Bundle;)V
.registers 4
.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
const-string p3, "onStatusChanged"
invoke-static {p1, p3}, Lio/rong/common/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I
if-eqz p2, :cond_26
const/4 p1, 0x1
if-eq p2, p1, :cond_1c
const/4 p1, 0x2
if-eq p2, p1, :cond_12
goto :goto_2f
.line 2
:cond_12
# 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
const-string p2, "\u5f53\u524dGPS\u72b6\u6001\u4e3a\u53ef\u89c1\u72b6\u6001"
invoke-static {p1, p2}, Lio/rong/common/RLog;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_2f
.line 3
:cond_1c
# 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
const-string p2, "\u5f53\u524dGPS\u72b6\u6001\u4e3a\u6682\u505c\u670d\u52a1\u72b6\u6001"
invoke-static {p1, p2}, Lio/rong/common/RLog;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_2f
.line 4
:cond_26
# 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
const-string p2, "\u5f53\u524dGPS\u72b6\u6001\u4e3a\u670d\u52a1\u533a\u5916\u72b6\u6001"
invoke-static {p1, p2}, Lio/rong/common/RLog;->i(Ljava/lang/String;Ljava/lang/String;)I
:goto_2f
return-void
.end method