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

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


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


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

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

    const/4 v0, 0x0

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

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

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

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

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

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

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

    move-result-object v0

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

    invoke-virtual {p0}, Lcom/lextel/ALovePhone/Guide;->b()Ljava/lang/String;

    move-result-object v0

    const-string v1, "zh"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

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

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/a;->b()Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f02005f

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

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

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/a;->c()Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020061

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

    :goto_0
    iget-object v0, p0, Lcom/lextel/ALovePhone/Guide;->a:Lcom/lextel/ALovePhone/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/a;->c()Landroid/widget/ImageView;

    move-result-object v0

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

    return-void

    :cond_0
    iget-object v0, p0, Lcom/lextel/ALovePhone/Guide;->a:Lcom/lextel/ALovePhone/a;

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/a;->b()Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020060

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

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

    invoke-virtual {v0}, Lcom/lextel/ALovePhone/a;->c()Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020062

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

    goto :goto_0
.end method

.method public b()Ljava/lang/String;
    .locals 5

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    const-string v1, "%s-%s"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {v0}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 1

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

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/lextel/ALovePhone/Guide;->requestWindowFeature(I)Z

    invoke-virtual {p0}, Lcom/lextel/ALovePhone/Guide;->a()V

    return-void
.end method

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

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

    move-result v0

    const v1, 0x7f09031d

    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
    const/4 v0, 0x1

    return v0

    :pswitch_0
    invoke-virtual {p0}, Lcom/lextel/ALovePhone/Guide;->finish()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method
