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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/location/worker/MJV3LocationWorker;->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/MJV3LocationWorker;


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

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

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

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

    iput-object p4, p0, Lcom/moji/location/worker/MJV3LocationWorker$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 59
    iget-object v0, p0, Lcom/moji/location/worker/MJV3LocationWorker$1;->d:Lcom/moji/location/worker/MJV3LocationWorker;

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

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_1

    .line 62
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getErrorCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_1

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

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

    const-string v2, ""

    invoke-static {v0, p1, v1, v2}, Lcom/moji/location/worker/MJV3LocationWorker;->a(Lcom/moji/location/worker/MJV3LocationWorker;Lcom/moji/location/entity/MJLocation;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Ljava/lang/String;)V

    .line 66
    invoke-static {}, Lcom/moji/tool/DeviceTool;->l()Z

    move-result p1

    .line 67
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    .line 68
    new-instance v1, Lcom/moji/location/worker/MJV3LocationWorker$1$1;

    invoke-direct {v1, p0, p1, v0}, Lcom/moji/location/worker/MJV3LocationWorker$1$1;-><init>(Lcom/moji/location/worker/MJV3LocationWorker$1;ZZ)V

    sget-object p1, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    sget-object v0, Lcom/moji/tool/thread/ThreadPriority;->LOW:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v1, p1, v0}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void

    .line 78
    :cond_1
    new-instance v0, Lcom/moji/location/worker/MJV3LocationWorker$1$2;

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

    .line 106
    iget-object p1, p0, Lcom/moji/location/worker/MJV3LocationWorker$1;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/moji/location/util/LocationUtil;->a(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_2

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

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

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

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

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

    invoke-static {p1}, Lcom/moji/location/worker/MJV3LocationWorker;->c(Lcom/moji/location/worker/MJV3LocationWorker;)Lcom/moji/location/worker/CDMALocationWorker;

    move-result-object p1

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

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

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

    goto :goto_0

    .line 110
    :cond_2
    iget-object p1, p0, Lcom/moji/location/worker/MJV3LocationWorker$1;->d:Lcom/moji/location/worker/MJV3LocationWorker;

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

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

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

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

    invoke-static {p1}, Lcom/moji/location/worker/MJV3LocationWorker;->d(Lcom/moji/location/worker/MJV3LocationWorker;)Lcom/moji/location/worker/GSMLocationWorker;

    move-result-object p1

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

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

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

    :goto_0
    return-void
.end method

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

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

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

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_1

    .line 50
    invoke-static {p1}, Lcom/moji/location/util/LocationUtil;->b(Lcom/moji/location/entity/MJLocation;)Z

    move-result v0

    if-eqz v0, :cond_1

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

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

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

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

    goto :goto_0

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

    :goto_0
    return-void
.end method

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

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

    if-eqz v0, :cond_0

    .line 118
    iget-object v0, p0, Lcom/moji/location/worker/MJV3LocationWorker$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
