.class Lcom/moji/location/worker/TVLocationWorker$1;
.super Ljava/lang/Object;
.source "TVLocationWorker.java"

# interfaces
.implements Lcom/moji/location/MJLocationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/location/worker/TVLocationWorker;->a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V
.end annotation

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


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;

.field final synthetic c:Lcom/moji/location/options/MJLocationOptions;

.field final synthetic d:Lcom/moji/location/worker/TVLocationWorker;


# direct methods
.method constructor <init>(Lcom/moji/location/worker/TVLocationWorker;Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V
    .locals 0

    .line 47
    iput-object p1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    iput-object p2, p0, Lcom/moji/location/worker/TVLocationWorker$1;->a:Landroid/content/Context;

    iput-object p3, p0, Lcom/moji/location/worker/TVLocationWorker$1;->b:Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;

    iput-object p4, p0, Lcom/moji/location/worker/TVLocationWorker$1;->c:Lcom/moji/location/options/MJLocationOptions;

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

    return-void
.end method


# virtual methods
.method public onLocateError(Lcom/moji/location/entity/MJLocation;)V
    .locals 3

    .line 64
    new-instance v0, Lcom/moji/location/worker/TVLocationWorker$1$1;

    invoke-direct {v0, p0, p1}, Lcom/moji/location/worker/TVLocationWorker$1$1;-><init>(Lcom/moji/location/worker/TVLocationWorker$1;Lcom/moji/location/entity/MJLocation;)V

    .line 94
    iget-object p1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    new-instance v1, Lcom/moji/location/worker/IPLocationWorker;

    invoke-direct {v1}, Lcom/moji/location/worker/IPLocationWorker;-><init>()V

    invoke-static {p1, v1}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;Lcom/moji/location/worker/IPLocationWorker;)Lcom/moji/location/worker/IPLocationWorker;

    .line 95
    iget-object p1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    invoke-static {p1}, Lcom/moji/location/worker/TVLocationWorker;->b(Lcom/moji/location/worker/TVLocationWorker;)Lcom/moji/location/worker/IPLocationWorker;

    move-result-object p1

    iget-object v1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->a:Landroid/content/Context;

    iget-object v2, p0, Lcom/moji/location/worker/TVLocationWorker$1;->c:Lcom/moji/location/options/MJLocationOptions;

    invoke-virtual {p1, v1, v0, v2}, Lcom/moji/location/worker/IPLocationWorker;->a(Landroid/content/Context;Lcom/moji/location/MJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V

    return-void
.end method

.method public onLocateSuccess(Lcom/moji/location/entity/MJLocation;)V
    .locals 3

    .line 50
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    invoke-static {v0}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_1

    .line 53
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    invoke-static {v0, p1}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;Lcom/moji/location/entity/MJLocation;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 54
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    iget-object v1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->a:Landroid/content/Context;

    iget-object v2, p0, Lcom/moji/location/worker/TVLocationWorker$1;->b:Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;

    invoke-static {v0, v1, v2, p1}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V

    goto :goto_0

    .line 56
    :cond_1
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;Z)Z

    .line 57
    invoke-virtual {p0, p1}, Lcom/moji/location/worker/TVLocationWorker$1;->onLocateError(Lcom/moji/location/entity/MJLocation;)V

    .line 58
    iget-object p1, p0, Lcom/moji/location/worker/TVLocationWorker$1;->d:Lcom/moji/location/worker/TVLocationWorker;

    const-string v0, "amap location error"

    const/4 v1, 0x0

    invoke-static {p1, v1, v1, v0}, Lcom/moji/location/worker/TVLocationWorker;->a(Lcom/moji/location/worker/TVLocationWorker;ZZLjava/lang/String;)V

    :goto_0
    return-void
.end method

.method public onOtherDataReady(Lcom/moji/location/entity/MJLocation;)V
    .locals 1

    .line 100
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->b:Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;

    if-eqz v0, :cond_0

    .line 101
    iget-object v0, p0, Lcom/moji/location/worker/TVLocationWorker$1;->b:Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;

    invoke-interface {v0, p1}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->b(Ljava/lang/Object;)V

    :cond_0
    return-void
.end method
