.class public Lcom/lextel/ALovePhone/about/About;
.super Landroid/app/Activity;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private a:Lcom/lextel/ALovePhone/about/a;

.field private b:Landroid/content/pm/PackageManager;


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

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    iput-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    iput-object v0, p0, Lcom/lextel/ALovePhone/about/About;->b:Landroid/content/pm/PackageManager;

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 4

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Lcom/lextel/ALovePhone/about/a;

    invoke-direct {v0, p0}, Lcom/lextel/ALovePhone/about/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {p0}, Lcom/lextel/ALovePhone/about/About;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/lextel/ALovePhone/about/About;->b:Landroid/content/pm/PackageManager;

    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->a()Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/lextel/ALovePhone/about/About;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->d()Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->e()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setFakeBoldText(Z)V

    :try_start_0
    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->b:Landroid/content/pm/PackageManager;

    invoke-virtual {p0}, Lcom/lextel/ALovePhone/about/About;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    iget-object v1, v0, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget-object v2, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v2}, Lcom/lextel/ALovePhone/about/a;->b()Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, p0, Lcom/lextel/ALovePhone/about/About;->b:Landroid/content/pm/PackageManager;

    invoke-virtual {v1, v3}, Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v1}, Lcom/lextel/ALovePhone/about/a;->c()Landroid/widget/TextView;

    move-result-object v1

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_0
.end method

.method public onPause()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/b;->b(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/b;->a(Landroid/content/Context;)V

    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f090003

    if-ne v0, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    const/4 v0, 0x1

    return v0

    :pswitch_1
    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->d()Landroid/widget/LinearLayout;

    move-result-object v0

    const v1, 0x7f02012c

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->d()Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p0}, Lcom/lextel/ALovePhone/about/About;->finish()V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/lextel/ALovePhone/about/About;->a:Lcom/lextel/ALovePhone/about/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/about/a;->d()Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method
