.
class
public Lcom
/
example
/
ni0822
/
MainActivity;
.
super
Landroid
/
support
/
v7
/
app
/
AppCompatActivity;
.source
"MainActivity.java"
.field Login:Landroid
/
widget
/
Button;
.field Password:Landroid
/
widget
/
EditText;
.field Username:Landroid
/
widget
/
EditText;
.method public constructor <init>()V
.
locals
0
.line
10
invoke
-
direct {p0}, Landroid
/
support
/
v7
/
app
/
AppCompatActivity;
-
><init>()V
return
-
void
.end method
.method static synthetic access$
000
(Lcom
/
example
/
ni0822
/
MainActivity;Ljava
/
lang
/
String;Ljava
/
lang
/
String;)V
.
locals
0
.param p0,
"x0"
.param p1,
"x1"
.param p2,
"x2"
.line
10
invoke
-
direct {p0, p1, p2}, Lcom
/
example
/
ni0822
/
MainActivity;
-
>check(Ljava
/
lang
/
String;Ljava
/
lang
/
String;)V
return
-
void
.end method
.method private check(Ljava
/
lang
/
String;Ljava
/
lang
/
String;)V
.
locals
2
.param p1,
"username"
.param p2,
"password"
.line
34
const
-
string v0,
"ymt"
invoke
-
virtual {p1, v0}, Ljava
/
lang
/
String;
-
>equals(Ljava
/
lang
/
Object
;)Z
move
-
result v0
const
/
4
v1,
0x0
if
-
eqz v0, :cond_0
const
-
string v0,
"123456"
invoke
-
virtual {p2, v0}, Ljava
/
lang
/
String;
-
>equals(Ljava
/
lang
/
Object
;)Z
move
-
result v0
if
-
eqz v0, :cond_0
.line
35
const
-
string v0,
"\u767b\u5f55\u6210\u529f"
invoke
-
static {p0, v0, v1}, Landroid
/
widget
/
Toast;
-
>makeText(Landroid
/
content
/
Context;Ljava
/
lang
/
CharSequence;I)Landroid
/
widget
/
Toast;
move
-
result
-
object
v0
invoke
-
virtual {v0}, Landroid
/
widget
/
Toast;
-
>show()V
goto :goto_0
.line
37
:cond_0
const
-
string v0,
"\u767b\u5f55\u5931\u8d25"
invoke
-
static {p0, v0, v1}, Landroid
/
widget
/
Toast;
-
>makeText(Landroid
/
content
/
Context;Ljava
/
lang
/
CharSequence;I)Landroid
/
widget
/
Toast;
move
-
result
-
object
v0
invoke
-
virtual {v0}, Landroid
/
widget
/
Toast;
-
>show()V
.line
39
:goto_0
return
-
void
.end method
.method protected onCreate(Landroid
/
os
/
Bundle;)V
.
locals
2
.param p1,
"savedInstanceState"
.line
18
invoke
-
super
{p0, p1}, Landroid
/
support
/
v7
/
app
/
AppCompatActivity;
-
>onCreate(Landroid
/
os
/
Bundle;)V
.line
19
const v0,
0x7f09001c
invoke
-
virtual {p0, v0}, Lcom
/
example
/
ni0822
/
MainActivity;
-
>setContentView(I)V
.line
21
const v0,
0x7f070004
invoke
-
virtual {p0, v0}, Lcom
/
example
/
ni0822
/
MainActivity;
-
>findViewById(I)Landroid
/
view
/
View;
move
-
result
-
object
v0
check
-
cast v0, Landroid
/
widget
/
EditText;
iput
-
object
v0, p0, Lcom
/
example
/
ni0822
/
MainActivity;
-
>Username:Landroid
/
widget
/
EditText;
.line
22
const v0,
0x7f070003
invoke
-
virtual {p0, v0}, Lcom
/
example
/
ni0822
/
MainActivity;
-
>findViewById(I)Landroid
/
view
/
View;
move
-
result
-
object
v0
check
-
cast v0, Landroid
/
widget
/
EditText;
iput
-
object
v0, p0, Lcom
/
example
/
ni0822
/
MainActivity;
-
>Password:Landroid
/
widget
/
EditText;
.line
23
const v0,
0x7f070001
invoke
-
virtual {p0, v0}, Lcom
/
example
/
ni0822
/
MainActivity;
-
>findViewById(I)Landroid
/
view
/
View;
move
-
result
-
object
v0
check
-
cast v0, Landroid
/
widget
/
Button;
iput
-
object
v0, p0, Lcom
/
example
/
ni0822
/
MainActivity;
-
>Login:Landroid
/
widget
/
Button;
.line
25
new
-
instance v1, Lcom
/
example
/
ni0822
/
MainActivity$
1
;
invoke
-
direct {v1, p0}, Lcom
/
example
/
ni0822
/
MainActivity$
1
;
-
><init>(Lcom
/
example
/
ni0822
/
MainActivity;)V
invoke
-
virtual {v0, v1}, Landroid
/
widget
/
Button;
-
>setOnClickListener(Landroid
/
view
/
View$OnClickListener;)V
.line
31
return
-
void
.end method