166 lines
3.3 KiB
Smali
166 lines
3.3 KiB
Smali
.class public Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;
|
|
.super Landroid/support/v4/widget/SwipeRefreshLayout;
|
|
.source "MultiSwipeRefreshLayout.java"
|
|
|
|
|
|
# static fields
|
|
.field static final synthetic a:Z
|
|
|
|
|
|
# instance fields
|
|
.field private b:[Landroid/view/View;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 31
|
|
const-class v0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
sput-boolean v0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->a:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1, p2}, Landroid/support/v4/widget/SwipeRefreshLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Landroid/view/View;)Z
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 90
|
|
invoke-static {p0, v0}, Landroid/support/v4/view/ViewCompat;->canScrollVertically(Landroid/view/View;I)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canChildScrollUp()Z
|
|
.locals 6
|
|
|
|
.line 68
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->b:[Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->b:[Landroid/view/View;
|
|
|
|
array-length v0, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 70
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->b:[Landroid/view/View;
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_1
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 71
|
|
invoke-virtual {v4}, Landroid/view/View;->isShown()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
invoke-static {v4}, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->a(Landroid/view/View;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public varargs setSwipeableChildren([I)V
|
|
.locals 3
|
|
|
|
.line 48
|
|
sget-boolean v0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->a:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
.line 51
|
|
:cond_1
|
|
:goto_0
|
|
array-length v0, p1
|
|
|
|
new-array v0, v0, [Landroid/view/View;
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->b:[Landroid/view/View;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 52
|
|
:goto_1
|
|
array-length v1, p1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 53
|
|
iget-object v1, p0, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->b:[Landroid/view/View;
|
|
|
|
aget v2, p1, v0
|
|
|
|
invoke-virtual {p0, v2}, Lcom/moji/mjweather/weather/view/MultiSwipeRefreshLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|