.class public Lcom/moji/camera/utils/IntentUtils;
.super Ljava/lang/Object;
.source "IntentUtils.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 15
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a()Lcom/moji/camera/model/TIntentWap;
    .locals 3

    .line 22
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string v1, "android.intent.action.PICK"

    .line 23
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "image/*"

    .line 24
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 25
    new-instance v1, Lcom/moji/camera/model/TIntentWap;

    const/16 v2, 0x3ef

    invoke-direct {v1, v0, v2}, Lcom/moji/camera/model/TIntentWap;-><init>(Landroid/content/Intent;I)V

    return-object v1
.end method

.method public static a(Landroid/app/Activity;I)Lcom/moji/camera/model/TIntentWap;
    .locals 2

    .line 43
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/multiselector/activity/ImageGridActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string p0, "intent_extra_limit"

    if-lez p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    .line 44
    :goto_0
    invoke-virtual {v0, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 45
    new-instance p0, Lcom/moji/camera/model/TIntentWap;

    const/16 p1, 0x3f0

    invoke-direct {p0, v0, p1}, Lcom/moji/camera/model/TIntentWap;-><init>(Landroid/content/Intent;I)V

    return-object p0
.end method

.method public static a(Landroid/net/Uri;)Lcom/moji/camera/model/TIntentWap;
    .locals 2

    .line 53
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const/4 v1, 0x1

    .line 54
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const-string v1, "android.media.action.IMAGE_CAPTURE"

    .line 55
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "output"

    .line 56
    invoke-virtual {v0, v1, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 57
    new-instance p0, Lcom/moji/camera/model/TIntentWap;

    const/16 v1, 0x3eb

    invoke-direct {p0, v0, v1}, Lcom/moji/camera/model/TIntentWap;-><init>(Landroid/content/Intent;I)V

    return-object p0
.end method

.method public static b()Lcom/moji/camera/model/TIntentWap;
    .locals 3

    .line 33
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "image/*"

    .line 34
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 35
    new-instance v1, Lcom/moji/camera/model/TIntentWap;

    const/16 v2, 0x3ed

    invoke-direct {v1, v0, v2}, Lcom/moji/camera/model/TIntentWap;-><init>(Landroid/content/Intent;I)V

    return-object v1
.end method
