[Java] 纯文本查看 复制代码
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 2
iget-object v1, p0, Lcom/amap/bundle/drive/result/view/RouteCarLongScenePanel;->mIconList:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_b
:goto_b
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_27
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/widget/ImageView;
.line 3
invoke-virtual {v2}, Landroid/widget/ImageView;->getParent()Landroid/view/ViewParent;
move-result-object v2
check-cast v2, Landroid/view/ViewGroup;
.line 4
invoke-virtual {v2}, Landroid/view/ViewGroup;->getVisibility()I
move-result v3
if-nez v3, :cond_b
.line 5
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_b
.line 6
:cond_27
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v2, 0x1
const/4 v3, 0x0
if-ne v1, v2, :cond_3f
.line 7
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
sget v1, Lcom/autonavi/minimap/R$drawable;->icon_c_bg_single:I
invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V
goto :goto_81
:cond_3f
const/4 v1, 0x0
.line 8
:goto_40
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v4 if-ge v1, v4, :cond_81
if-nez v1, :cond_58
.line 9
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/view/ViewGroup;
invoke-virtual {v4, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v4
sget v5, Lcom/autonavi/minimap/R$drawable;->icon_c_bg_up:I
invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundResource(I)V
goto :goto_7e
.line 10
:cond_58
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v4
sub-int/2addr v4, v2
if-ne v1, v4, :cond_6f
.line 11
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/view/ViewGroup;
invoke-virtual {v4, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v4
sget v5, Lcom/autonavi/minimap/R$drawable;->icon_c_bg_down:I
invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundResource(I)V
goto :goto_7e
.line 12
:cond_6f
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/view/ViewGroup;
invoke-virtual {v4, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v4
sget v5, Lcom/autonavi/minimap/R$drawable;->icon_c_bg_mid:I
invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundResource(I)V
:goto_7e
add-int/lit8 v1, v1, 0x1
goto :goto_40
:cond_81
:goto_81
return-void