c.smali
.class public Lcom/fulishe/shadow/d/c;
.super Landroid/telephony/PhoneStateListener;
.source ""
# instance fields
.field public final synthetic a:Lcom/fulishe/shadow/d/b;
# direct methods
.method public constructor <init>(Lcom/fulishe/shadow/d/b;)V
.registers 2
iput-object p1, p0, Lcom/fulishe/shadow/d/c;->a:Lcom/fulishe/shadow/d/b;
invoke-direct {p0}, Landroid/telephony/PhoneStateListener;-><init>()V
return-void
.end method
.method private a(Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Landroid/telephony/CellInfo;",
">;)V"
}
.end annotation
if-nez p1, :cond_3
:goto_2
return-void
:cond_3
iget-object v0, p0, Lcom/fulishe/shadow/d/c;->a:Lcom/fulishe/shadow/d/b;
iget-object v0, v0, Lcom/fulishe/shadow/d/b;->b:Lcom/fulishe/shadow/d/a;
invoke-static {v0}, Lcom/fulishe/shadow/d/a;->a(Lcom/fulishe/shadow/d/a;)Ljava/util/concurrent/CopyOnWriteArrayList;
move-result-object v0
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V
iget-object v0, p0, Lcom/fulishe/shadow/d/c;->a:Lcom/fulishe/shadow/d/b;
iget-object v0, v0, Lcom/fulishe/shadow/d/b;->b:Lcom/fulishe/shadow/d/a;
invoke-static {v0}, Lcom/fulishe/shadow/d/a;->a(Lcom/fulishe/shadow/d/a;)Ljava/util/concurrent/CopyOnWriteArrayList;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addAll(Ljava/util/Collection;)Z
goto :goto_2
.end method
# virtual methods
.method public onCellInfoChanged(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Landroid/telephony/CellInfo;",
">;)V"
}
.end annotation
invoke-super {p0, p1}, Landroid/telephony/PhoneStateListener;->onCellInfoChanged(Ljava/util/List;)V
invoke-direct {p0, p1}, Lcom/fulishe/shadow/d/c;->a(Ljava/util/List;)V
return-void
.end method
.method public onCellLocationChanged(Landroid/telephony/CellLocation;)V
.registers 4
invoke-super {p0, p1}, Landroid/telephony/PhoneStateListener;->onCellLocationChanged(Landroid/telephony/CellLocation;)V
:try_start_3
iget-object v0, p0, Lcom/fulishe/shadow/d/c;->a:Lcom/fulishe/shadow/d/b;
iget-object v0, v0, Lcom/fulishe/shadow/d/b;->a:Landroid/content/Context;
const-string v1, "android.permission.ACCESS_COARSE_LOCATION"
invoke-static {v0, v1}, Landroid/support/v4/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
if-nez v0, :cond_1a
invoke-static {}, Lcom/fulishe/shadow/d/a;->a()Landroid/telephony/TelephonyManager;
move-result-object v0
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getAllCellInfo()Ljava/util/List;
move-result-object v0
invoke-direct {p0, v0}, Lcom/fulishe/shadow/d/c;->a(Ljava/util/List;)V
:try_end_1a
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_1a} :catch_1b
:cond_1a
:goto_1a
return-void
:catch_1b
move-exception v0
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_1a
.end method