213 lines
4.1 KiB
Smali
213 lines
4.1 KiB
Smali
.class public Lcom/moji/camera/model/GalleryOptions;
|
|
.super Ljava/lang/Object;
|
|
.source "GalleryOptions.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/camera/model/GalleryOptions$Builder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/moji/camera/model/GalleryOptions;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private limit:I
|
|
|
|
.field private single:Z
|
|
|
|
.field private useGallery:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 86
|
|
new-instance v0, Lcom/moji/camera/model/GalleryOptions$1;
|
|
|
|
invoke-direct {v0}, Lcom/moji/camera/model/GalleryOptions$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/camera/model/GalleryOptions;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 3
|
|
|
|
.line 98
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 99
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 100
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/moji/camera/model/GalleryOptions;->single:Z
|
|
|
|
.line 102
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 103
|
|
:cond_1
|
|
iput-boolean v1, p0, Lcom/moji/camera/model/GalleryOptions;->useGallery:Z
|
|
|
|
.line 105
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/camera/model/GalleryOptions;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/moji/camera/model/GalleryOptions$1;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1}, Lcom/moji/camera/model/GalleryOptions;-><init>(Landroid/os/Parcel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/moji/camera/model/GalleryOptions$1;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Lcom/moji/camera/model/GalleryOptions;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLimit()I
|
|
.locals 1
|
|
|
|
.line 38
|
|
iget v0, p0, Lcom/moji/camera/model/GalleryOptions;->limit:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSingle()Z
|
|
.locals 1
|
|
|
|
.line 22
|
|
iget-boolean v0, p0, Lcom/moji/camera/model/GalleryOptions;->single:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isGallery()Z
|
|
.locals 1
|
|
|
|
.line 30
|
|
iget-boolean v0, p0, Lcom/moji/camera/model/GalleryOptions;->useGallery:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setLimit(I)V
|
|
.locals 0
|
|
|
|
.line 34
|
|
iput p1, p0, Lcom/moji/camera/model/GalleryOptions;->limit:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSingle(Z)V
|
|
.locals 0
|
|
|
|
.line 18
|
|
iput-boolean p1, p0, Lcom/moji/camera/model/GalleryOptions;->single:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public useGallery(Z)V
|
|
.locals 0
|
|
|
|
.line 26
|
|
iput-boolean p1, p0, Lcom/moji/camera/model/GalleryOptions;->useGallery:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 0
|
|
|
|
.line 81
|
|
iget-boolean p2, p0, Lcom/moji/camera/model/GalleryOptions;->single:Z
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 82
|
|
iget-boolean p2, p0, Lcom/moji/camera/model/GalleryOptions;->useGallery:Z
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 83
|
|
iget p2, p0, Lcom/moji/camera/model/GalleryOptions;->limit:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
return-void
|
|
.end method
|