好友
阅读权限40
听众
最后登录1970-1-1
|
.class Lcom/test/test/MainActivity$1;
.super Ljava/lang/Object;
.source "MainActivity.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/test/test/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/test/test/MainActivity;
# direct methods
.method constructor <init>(Lcom/test/test/MainActivity;)V
.locals 0
.param p1, "this$0" # Lcom/test/test/MainActivity;
.prologue
.line 41
iput-object p1, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/view/View;)V
.locals 4
.param p1, "view" # Landroid/view/View;
.prologue
.line 44
iget-object v2, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-static {v2}, Lcom/test/test/MainActivity;->access$000(Lcom/test/test/MainActivity;)Landroid/widget/EditText;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
.line 45
.local v1, "userinput":Ljava/lang/String;
iget-object v2, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
iget-object v3, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-static {v3}, Lcom/test/test/MainActivity;->access$200(Lcom/test/test/MainActivity;)Ljava/lang/String;
move-result-object v3
invoke-static {v3, v1}, Lcom/test/test/ndkMethod;->checkInput(Ljava/lang/String;Ljava/lang/String;)I
move-result v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-static {v2, v3}, Lcom/test/test/MainActivity;->access$102(Lcom/test/test/MainActivity;Ljava/lang/Integer;)Ljava/lang/Integer;
.line 46
iget-object v2, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-static {v2}, Lcom/test/test/MainActivity;->access$100(Lcom/test/test/MainActivity;)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
.line 47
const-string v0, "<html><body><a><font color=\"#00ff00\">\u9a8c\u8bc1\u901a\u8fc7!</a></body></html>"
.line 48
.local v0, "html1":Ljava/lang/String;
iget-object v2, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-static {v2}, Lcom/test/test/MainActivity;->access$300(Lcom/test/test/MainActivity;)Landroid/widget/EditText;
move-result-object v2
invoke-static {v0}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
.line 53
:goto_0
return-void
.line 50
.end local v0 # "html1":Ljava/lang/String;
:cond_0
const-string v0, "<html><body><a><font color=\"#ff0000\">\u9a8c\u8bc1\u5931\u8d25!</a></body></html>"
.line 51
.restart local v0 # "html1":Ljava/lang/String;
iget-object v2, p0, Lcom/test/test/MainActivity$1;->this$0:Lcom/test/test/MainActivity;
invoke-static {v2}, Lcom/test/test/MainActivity;->access$300(Lcom/test/test/MainActivity;)Landroid/widget/EditText;
move-result-object v2
invoke-static {v0}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.end method
|
|