174 lines
5.1 KiB
Smali
174 lines
5.1 KiB
Smali
.class Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;
|
|
.super Ljava/lang/Object;
|
|
.source "AbsDetailAdapter.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;
|
|
|
|
.field final synthetic b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;)V
|
|
.locals 0
|
|
|
|
.line 386
|
|
iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iput-object p2, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->a:Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 5
|
|
|
|
.line 389
|
|
sget v0, Lcom/moji/mjweather/feed/R$id;->id_tag:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 392
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v3, v3, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_0
|
|
|
|
.line 393
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v3, v3, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;
|
|
|
|
.line 394
|
|
iget v3, v0, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;->adIndex:I
|
|
|
|
if-le v3, v1, :cond_1
|
|
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v3, v3, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->h:Ljava/util/Map;
|
|
|
|
iget v4, v0, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;->adIndex:I
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 398
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v3, v3, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge p1, v3, :cond_3
|
|
|
|
.line 399
|
|
iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v3, v3, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;
|
|
|
|
.line 400
|
|
iget v3, p1, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;->adIndex:I
|
|
|
|
if-le v3, v1, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v1, v1, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->h:Ljava/util/Map;
|
|
|
|
iget v3, p1, Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;->adIndex:I
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v2, p1
|
|
|
|
.line 404
|
|
:cond_3
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->b:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter$2;->a:Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;
|
|
|
|
invoke-virtual {p1, v1, v0, v2}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->a(Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;Lcom/moji/http/fdsapi/entity/SimilarRecommendList$Item;)V
|
|
|
|
return-void
|
|
.end method
|