375 lines
7.9 KiB
Smali
375 lines
7.9 KiB
Smali
.class public Lpb/b;
|
|
.super Landroid/widget/BaseAdapter;
|
|
.source "AiChooseAnotherRouteOptionListAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lpb/b$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/skt/tmap/data/RouteOptionData;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Landroid/content/Context;
|
|
|
|
.field public c:Lsb/a;
|
|
|
|
.field public d:Lcom/skt/tmap/engine/navigation/route/RoutePlanType;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lsb/a;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"context",
|
|
"tmapAiData"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lpb/b;->b:Landroid/content/Context;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lpb/b;->c:Lsb/a;
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lpb/b;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lpb/b;->c:Lsb/a;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {}, Lcom/skt/tmap/data/RouteOptionData;->getValues()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {v0}, Lsb/a;->r()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-static {}, Lcom/skt/tmap/engine/navigation/NavigationManager;->getInstance()Lcom/skt/tmap/engine/navigation/NavigationManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/skt/tmap/engine/navigation/NavigationManager;->getRoutePlanType()Lcom/skt/tmap/engine/navigation/route/RoutePlanType;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lpb/b;->d:Lcom/skt/tmap/engine/navigation/route/RoutePlanType;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(ILandroid/view/View;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"index",
|
|
"view"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-le v0, p1, :cond_2
|
|
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/skt/tmap/data/RouteOptionData;
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lpb/b$b;
|
|
|
|
.line 4
|
|
iget-object v1, p2, Lpb/b$b;->a:Landroid/widget/TextView;
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 5
|
|
iget-object p1, p2, Lpb/b$b;->b:Landroid/widget/TextView;
|
|
|
|
iget v1, v0, Lcom/skt/tmap/data/RouteOptionData;->titleRes:I
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
.line 6
|
|
iget p1, v0, Lcom/skt/tmap/data/RouteOptionData;->tvasOption:I
|
|
|
|
invoke-static {p1}, Lcom/skt/tmap/engine/navigation/route/RoutePlanType;->getRoutePlanType(I)Lcom/skt/tmap/engine/navigation/route/RoutePlanType;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {}, Lcom/skt/tmap/engine/navigation/NavigationManager;->getInstance()Lcom/skt/tmap/engine/navigation/NavigationManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/skt/tmap/engine/navigation/NavigationManager;->getRoutePlanType()Lcom/skt/tmap/engine/navigation/route/RoutePlanType;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
.line 7
|
|
iget-object p1, p2, Lpb/b$b;->c:Landroid/widget/TextView;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
iget-object p1, p2, Lpb/b$b;->c:Landroid/widget/TextView;
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getItem(I)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"i"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lpb/b;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 3
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getItemId(I)J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"i"
|
|
}
|
|
.end annotation
|
|
|
|
int-to-long v0, p1
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"i",
|
|
"view",
|
|
"viewGroup"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 1
|
|
iget-object p2, p0, Lpb/b;->b:Landroid/content/Context;
|
|
|
|
invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p2
|
|
|
|
const v0, 0x7f0d0042
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, v0, p3, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
.line 2
|
|
new-instance p3, Lpb/b$b;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p3, p0, v0}, Lpb/b$b;-><init>(Lpb/b;Lpb/b$a;)V
|
|
|
|
const v0, 0x7f0a00ac
|
|
|
|
.line 3
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p3, Lpb/b$b;->a:Landroid/widget/TextView;
|
|
|
|
const v0, 0x7f0a00ad
|
|
|
|
.line 4
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p3, Lpb/b$b;->b:Landroid/widget/TextView;
|
|
|
|
const v0, 0x7f0a00ab
|
|
|
|
.line 5
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p3, Lpb/b$b;->c:Landroid/widget/TextView;
|
|
|
|
.line 6
|
|
invoke-virtual {p2, p3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lpb/b;->b(ILandroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|