146 lines
4.3 KiB
Smali
146 lines
4.3 KiB
Smali
.class Lcom/moji/mjweather/TabNewLiveViewFragment$10;
|
|
.super Landroid/support/v7/widget/RecyclerView$OnScrollListener;
|
|
.source "TabNewLiveViewFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/TabNewLiveViewFragment;->j()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/TabNewLiveViewFragment;)V
|
|
.locals 0
|
|
|
|
.line 413
|
|
iput-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/support/v7/widget/RecyclerView;I)V
|
|
.locals 3
|
|
|
|
.line 416
|
|
invoke-super {p0, p1, p2}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;->a(Landroid/support/v7/widget/RecyclerView;I)V
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 417
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {p1}, Lcom/moji/mjweather/TabNewLiveViewFragment;->h(Lcom/moji/mjweather/TabNewLiveViewFragment;)Landroid/support/v7/widget/StaggeredGridLayoutManager;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {p1}, Lcom/moji/mjweather/TabNewLiveViewFragment;->f(Lcom/moji/mjweather/TabNewLiveViewFragment;)Lcom/moji/newliveview/home/adapter/LiveAdapter;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x2
|
|
|
|
.line 418
|
|
new-array p2, p1, [I
|
|
|
|
.line 419
|
|
new-array p1, p1, [I
|
|
|
|
.line 420
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabNewLiveViewFragment;->h(Lcom/moji/mjweather/TabNewLiveViewFragment;)Landroid/support/v7/widget/StaggeredGridLayoutManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2}, Landroid/support/v7/widget/StaggeredGridLayoutManager;->a([I)[I
|
|
|
|
move-result-object p2
|
|
|
|
.line 421
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabNewLiveViewFragment;->h(Lcom/moji/mjweather/TabNewLiveViewFragment;)Landroid/support/v7/widget/StaggeredGridLayoutManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v7/widget/StaggeredGridLayoutManager;->b([I)[I
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 422
|
|
aget v1, p2, v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget p2, p2, v2
|
|
|
|
invoke-static {v1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 423
|
|
aget v0, p1, v0
|
|
|
|
aget p1, p1, v2
|
|
|
|
invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 424
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/TabNewLiveViewFragment;->f(Lcom/moji/mjweather/TabNewLiveViewFragment;)Lcom/moji/newliveview/home/adapter/LiveAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2, p1}, Lcom/moji/newliveview/home/adapter/LiveAdapter;->e(II)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/support/v7/widget/RecyclerView;II)V
|
|
.locals 0
|
|
|
|
.line 430
|
|
invoke-super {p0, p1, p2, p3}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;->a(Landroid/support/v7/widget/RecyclerView;II)V
|
|
|
|
.line 431
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
iget-object p2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$10;->a:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {p2}, Lcom/moji/mjweather/TabNewLiveViewFragment;->i(Lcom/moji/mjweather/TabNewLiveViewFragment;)I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
invoke-static {p1, p2}, Lcom/moji/mjweather/TabNewLiveViewFragment;->a(Lcom/moji/mjweather/TabNewLiveViewFragment;I)I
|
|
|
|
return-void
|
|
.end method
|