.class Lcom/moji/base/control/BaseControl$1;
.super Ljava/lang/Object;
.source "BaseControl.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/base/control/BaseControl;->a(Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcom/moji/base/control/BaseControl;


# direct methods
.method constructor <init>(Lcom/moji/base/control/BaseControl;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 126
    iput-object p1, p0, Lcom/moji/base/control/BaseControl$1;->c:Lcom/moji/base/control/BaseControl;

    iput-object p2, p0, Lcom/moji/base/control/BaseControl$1;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/moji/base/control/BaseControl$1;->b:Ljava/lang/String;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    const-string p1, ""

    .line 130
    iget-object p2, p0, Lcom/moji/base/control/BaseControl$1;->c:Lcom/moji/base/control/BaseControl;

    invoke-static {p2}, Lcom/moji/base/control/BaseControl;->a(Lcom/moji/base/control/BaseControl;)Landroid/content/Context;

    move-result-object p2

    instance-of p2, p2, Lcom/moji/base/MJActivity;

    if-eqz p2, :cond_0

    .line 131
    iget-object p1, p0, Lcom/moji/base/control/BaseControl$1;->c:Lcom/moji/base/control/BaseControl;

    invoke-static {p1}, Lcom/moji/base/control/BaseControl;->a(Lcom/moji/base/control/BaseControl;)Landroid/content/Context;

    move-result-object p1

    check-cast p1, Lcom/moji/base/MJActivity;

    .line 132
    invoke-virtual {p1}, Lcom/moji/base/MJActivity;->getComponentName()Landroid/content/ComponentName;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object p1

    .line 134
    :cond_0
    new-instance p2, Landroid/content/Intent;

    const-string v0, "android.intent.action.SEND"

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

    const-string v0, "text/plain"

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

    const-string v0, "android.intent.extra.SUBJECT"

    const-string v1, "\u5f02\u5e38\u5185\u5bb9"

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

    const-string v0, "android.intent.extra.TEXT"

    .line 137
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/moji/base/control/BaseControl$1;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/moji/base/control/BaseControl$1;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\nfrom MJHttpHelperFrame"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 138
    iget-object p1, p0, Lcom/moji/base/control/BaseControl$1;->c:Lcom/moji/base/control/BaseControl;

    invoke-static {p1}, Lcom/moji/base/control/BaseControl;->a(Lcom/moji/base/control/BaseControl;)Landroid/content/Context;

    move-result-object p1

    const-string v0, "\u5206\u4eab\u5f02\u5e38\u4fe1\u606f"

    invoke-static {p2, v0}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
