You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
281 lines
7.6 KiB
281 lines
7.6 KiB
.class Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter; |
|
.super Landroid/support/v4/view/PagerAdapter; |
|
.source "AttachPopupWindow.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/gallery/AttachPopupWindow; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x2 |
|
name = "AttachPageAdapter" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>(Lcom/viatech/gallery/AttachPopupWindow;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 157 |
|
iput-object p1, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-direct {p0}, Landroid/support/v4/view/PagerAdapter;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method synthetic constructor <init>(Lcom/viatech/gallery/AttachPopupWindow;Lcom/viatech/gallery/AttachPopupWindow$1;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 157 |
|
invoke-direct {p0, p1}, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;-><init>(Lcom/viatech/gallery/AttachPopupWindow;)V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public destroyItem(Landroid/view/ViewGroup;ILjava/lang/Object;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 176 |
|
check-cast p3, Landroid/view/View; |
|
|
|
invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V |
|
|
|
.line 177 |
|
return-void |
|
.end method |
|
|
|
.method public getCount()I |
|
.locals 3 |
|
|
|
.prologue |
|
.line 161 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/AttachPopupWindow;->access$000(Lcom/viatech/gallery/AttachPopupWindow;)Ljava/util/ArrayList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
div-int/lit8 v0, v0, 0x8 |
|
|
|
.line 162 |
|
iget-object v1, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/AttachPopupWindow;->access$000(Lcom/viatech/gallery/AttachPopupWindow;)Ljava/util/ArrayList; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v1 |
|
|
|
mul-int/lit8 v2, v0, 0x8 |
|
|
|
if-le v1, v2, :cond_0 |
|
|
|
.line 163 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
.line 165 |
|
:cond_0 |
|
return v0 |
|
.end method |
|
|
|
.method public instantiateItem(Landroid/view/ViewGroup;I)Ljava/lang/Object; |
|
.locals 5 |
|
|
|
.prologue |
|
.line 181 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/AttachPopupWindow;->access$300(Lcom/viatech/gallery/AttachPopupWindow;)Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "layout_inflater" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/view/LayoutInflater; |
|
|
|
.line 182 |
|
const v1, 0x7f03003a |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/LinearLayout; |
|
|
|
.line 183 |
|
const v1, 0x7f0c0152 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Landroid/support/v7/widget/RecyclerView; |
|
|
|
.line 184 |
|
new-instance v2, Landroid/support/v7/widget/GridLayoutManager; |
|
|
|
iget-object v3, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v3}, Lcom/viatech/gallery/AttachPopupWindow;->access$300(Lcom/viatech/gallery/AttachPopupWindow;)Landroid/content/Context; |
|
|
|
move-result-object v3 |
|
|
|
const/4 v4, 0x4 |
|
|
|
invoke-direct {v2, v3, v4}, Landroid/support/v7/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V |
|
|
|
.line 185 |
|
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V |
|
|
|
.line 186 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->getCount()I |
|
|
|
move-result v2 |
|
|
|
.line 187 |
|
if-lez v2, :cond_2 |
|
|
|
.line 188 |
|
new-instance v3, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V |
|
|
|
.line 189 |
|
add-int/lit8 v4, v2, -0x1 |
|
|
|
if-ge p2, v4, :cond_0 |
|
|
|
.line 190 |
|
mul-int/lit8 v2, p2, 0x8 |
|
|
|
:goto_0 |
|
mul-int/lit8 v4, p2, 0x8 |
|
|
|
add-int/lit8 v4, v4, 0x8 |
|
|
|
if-ge v2, v4, :cond_1 |
|
|
|
.line 191 |
|
iget-object v4, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v4}, Lcom/viatech/gallery/AttachPopupWindow;->access$000(Lcom/viatech/gallery/AttachPopupWindow;)Ljava/util/ArrayList; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
|
|
|
.line 190 |
|
add-int/lit8 v2, v2, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 193 |
|
:cond_0 |
|
add-int/lit8 v2, v2, -0x1 |
|
|
|
if-ne p2, v2, :cond_1 |
|
|
|
.line 194 |
|
mul-int/lit8 v2, p2, 0x8 |
|
|
|
:goto_1 |
|
iget-object v4, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v4}, Lcom/viatech/gallery/AttachPopupWindow;->access$000(Lcom/viatech/gallery/AttachPopupWindow;)Ljava/util/ArrayList; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v4 |
|
|
|
if-ge v2, v4, :cond_1 |
|
|
|
.line 195 |
|
iget-object v4, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v4}, Lcom/viatech/gallery/AttachPopupWindow;->access$000(Lcom/viatech/gallery/AttachPopupWindow;)Ljava/util/ArrayList; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
|
|
|
.line 194 |
|
add-int/lit8 v2, v2, 0x1 |
|
|
|
goto :goto_1 |
|
|
|
.line 198 |
|
:cond_1 |
|
new-instance v2, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter; |
|
|
|
iget-object v4, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-direct {v2, v4, v3}, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;-><init>(Lcom/viatech/gallery/AttachPopupWindow;Ljava/util/List;)V |
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V |
|
|
|
.line 199 |
|
new-instance v2, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter$1; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter$1;-><init>(Lcom/viatech/gallery/AttachPopupWindow$AttachPageAdapter;)V |
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->addItemDecoration(Landroid/support/v7/widget/RecyclerView$ItemDecoration;)V |
|
|
|
.line 211 |
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V |
|
|
|
.line 213 |
|
:cond_2 |
|
return-object v0 |
|
.end method |
|
|
|
.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 170 |
|
if-ne p1, p2, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method
|
|
|