87 lines
2.1 KiB
Smali
87 lines
2.1 KiB
Smali
.class Lpl/droidsonroids/gif/GifViewUtils$GifViewAttributes;
|
|
.super Ljava/lang/Object;
|
|
.source "GifViewUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lpl/droidsonroids/gif/GifViewUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "GifViewAttributes"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field freezesAnimation:Z
|
|
|
|
.field final mLoopCount:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 112
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 113
|
|
iput-boolean v0, p0, Lpl/droidsonroids/gif/GifViewUtils$GifViewAttributes;->freezesAnimation:Z
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 114
|
|
iput v0, p0, Lpl/droidsonroids/gif/GifViewUtils$GifViewAttributes;->mLoopCount:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Landroid/view/View;Landroid/util/AttributeSet;II)V
|
|
.locals 1
|
|
|
|
.line 105
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 106
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lpl/droidsonroids/gif/R$styleable;->GifView:[I
|
|
|
|
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 107
|
|
sget p2, Lpl/droidsonroids/gif/R$styleable;->GifView_freezesAnimation:I
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Lpl/droidsonroids/gif/GifViewUtils$GifViewAttributes;->freezesAnimation:Z
|
|
|
|
.line 108
|
|
sget p2, Lpl/droidsonroids/gif/R$styleable;->GifView_loopCount:I
|
|
|
|
const/4 p3, -0x1
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lpl/droidsonroids/gif/GifViewUtils$GifViewAttributes;->mLoopCount:I
|
|
|
|
.line 109
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|