好友
阅读权限40
听众
最后登录1970-1-1
|
.class Lcom/example/crackme/MainActivity$1;
.super Ljava/lang/Object;
.source "MainActivity.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/example/crackme/MainActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/example/crackme/MainActivity;
.field private final synthetic val$edt:Landroid/widget/EditText;
# direct methods
.method constructor <init>(Lcom/example/crackme/MainActivity;Landroid/widget/EditText;)V
.locals 0
.prologue
.line 1
iput-object p1, p0, Lcom/example/crackme/MainActivity$1;->this$0:Lcom/example/crackme/MainActivity;
iput-object p2, p0, Lcom/example/crackme/MainActivity$1;->val$edt:Landroid/widget/EditText;
.line 19
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/view/View;)V
.locals 6
.param p1, "v" # Landroid/view/View;
.prologue
const/16 v5, 0xf
const/16 v4, 0x3e8
.line 24
iget-object v2, p0, Lcom/example/crackme/MainActivity$1;->val$edt:Landroid/widget/EditText;
invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v2
invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v1
.line 25
.local v1, "regcode":Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
.line 26
const/4 v0, 0x0
.line 27
.local v0, "i":I
:goto_0
.line 39
invoke-static {v1}, Lcom/example/crackme/MainActivity;->check(Ljava/lang/String;)Z
move-result v2
.line 40
iget-object v2, p0, Lcom/example/crackme/MainActivity$1;->this$0:Lcom/example/crackme/MainActivity;
const-string v3, "注册成功"
invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
.line 45
.end local v0 # "i":I
:cond_0
:goto_1
return-void
.line 28
.restart local v0 # "i":I
:cond_1
invoke-virtual {v1, v0}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x30
if-lt v2, v3, :cond_0
invoke-virtual {v1, v0}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x39
if-gt v2, v3, :cond_0
.line 32
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 36
.end local v0 # "i":I
:cond_2
iget-object v2, p0, Lcom/example/crackme/MainActivity$1;->this$0:Lcom/example/crackme/MainActivity;
const-string v3, "请输入正确的注册码"
invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_1
.line 42
.restart local v0 # "i":I
:cond_3
iget-object v2, p0, Lcom/example/crackme/MainActivity$1;->this$0:Lcom/example/crackme/MainActivity;
const-string v3, "注册失败"
invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_1
.end method
|
|