You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
4.1 KiB
169 lines
4.1 KiB
.class Lcom/viatech/camera/SettingActivity$8; |
|
.super Ljava/lang/Object; |
|
.source "SettingActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/view/View$OnClickListener; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/camera/SettingActivity;->initView()V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/camera/SettingActivity;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 503 |
|
iput-object p1, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onClick(Landroid/view/View;)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 506 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isUSBDevice()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 507 |
|
const v0, 0x7f07012c |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 550 |
|
:goto_0 |
|
return-void |
|
|
|
.line 510 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/SettingActivity;->isWifiNetworkConnected()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 511 |
|
const v0, 0x7f0700a0 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 515 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 516 |
|
const v0, 0x7f0700a3 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 520 |
|
:cond_2 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/SettingActivity;->access$400(Lcom/viatech/camera/SettingActivity;)Landroid/widget/EditText; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 521 |
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_3 |
|
|
|
.line 522 |
|
const v0, 0x7f0700c2 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 526 |
|
:cond_3 |
|
invoke-virtual {v0}, Ljava/lang/String;->length()I |
|
|
|
move-result v1 |
|
|
|
const/16 v2, 0x8 |
|
|
|
if-ge v1, v2, :cond_4 |
|
|
|
.line 527 |
|
const v0, 0x7f070096 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 531 |
|
:cond_4 |
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$8;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Lcom/viatech/camera/SettingActivity$8$1; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/camera/SettingActivity$8$1;-><init>(Lcom/viatech/camera/SettingActivity$8;)V |
|
|
|
invoke-virtual {v1, v0, v2}, Lcom/viatech/device/VPaiDevice;->setWifiApInfo(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|