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.
323 lines
8.8 KiB
323 lines
8.8 KiB
.class Lcom/viatech/camera/SettingActivity$12; |
|
.super Ljava/lang/Object; |
|
.source "SettingActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/view/View$OnClickListener; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/camera/SettingActivity;->authorizationDialog()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; |
|
|
|
.field final synthetic val$editkey:Landroid/widget/EditText; |
|
|
|
.field final synthetic val$edittext:Landroid/widget/EditText; |
|
|
|
.field final synthetic val$oValue:Ljava/lang/String; |
|
|
|
.field final synthetic val$oValueKey:Ljava/lang/String; |
|
|
|
.field final synthetic val$sp:Landroid/content/SharedPreferences; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/camera/SettingActivity;Landroid/widget/EditText;Landroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;Landroid/content/SharedPreferences;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 859 |
|
iput-object p1, p0, Lcom/viatech/camera/SettingActivity$12;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
iput-object p2, p0, Lcom/viatech/camera/SettingActivity$12;->val$edittext:Landroid/widget/EditText; |
|
|
|
iput-object p3, p0, Lcom/viatech/camera/SettingActivity$12;->val$editkey:Landroid/widget/EditText; |
|
|
|
iput-object p4, p0, Lcom/viatech/camera/SettingActivity$12;->val$oValue:Ljava/lang/String; |
|
|
|
iput-object p5, p0, Lcom/viatech/camera/SettingActivity$12;->val$oValueKey:Ljava/lang/String; |
|
|
|
iput-object p6, p0, Lcom/viatech/camera/SettingActivity$12;->val$sp:Landroid/content/SharedPreferences; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onClick(Landroid/view/View;)V |
|
.locals 9 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
.line 862 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->val$edittext:Landroid/widget/EditText; |
|
|
|
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 v2 |
|
|
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->val$editkey:Landroid/widget/EditText; |
|
|
|
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 v3 |
|
|
|
.line 863 |
|
invoke-virtual {v2}, Ljava/lang/String;->length()I |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->length()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 898 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 866 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->val$oValue:Ljava/lang/String; |
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->toString()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_2 |
|
|
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->val$oValueKey:Ljava/lang/String; |
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->toString()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_3 |
|
|
|
.line 867 |
|
:cond_2 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->val$sp:Landroid/content/SharedPreferences; |
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor; |
|
|
|
move-result-object v0 |
|
|
|
.line 868 |
|
const-string v4, "authorize_name" |
|
|
|
invoke-interface {v0, v4, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor; |
|
|
|
.line 869 |
|
const-string v4, "authorize_code" |
|
|
|
invoke-interface {v0, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor; |
|
|
|
.line 870 |
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z |
|
|
|
.line 873 |
|
:cond_3 |
|
invoke-static {}, Lcom/viatech/camera/RemoteCameraConnectManager;->instance()Lcom/viatech/camera/RemoteCameraConnectManager; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_9 |
|
|
|
.line 874 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->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 |
|
|
|
iget-object v0, v0, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo; |
|
|
|
.line 876 |
|
:goto_1 |
|
const-string v4, "VPAI_SettingActivity" |
|
|
|
new-instance v5, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v6, " >> authorizationDialog, devinfo:" |
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
invoke-static {v4, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 877 |
|
if-eqz v0, :cond_4 |
|
|
|
iget-object v4, v0, Lcom/viatech/device/DeviceInfo;->deviceid:Ljava/lang/String; |
|
|
|
if-eqz v4, :cond_4 |
|
|
|
iget-object v0, v0, Lcom/viatech/device/DeviceInfo;->deviceid:Ljava/lang/String; |
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_5 |
|
|
|
.line 878 |
|
:cond_4 |
|
const v0, 0x7f0701a6 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 881 |
|
:cond_5 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
const-string v4, "connectivity" |
|
|
|
invoke-virtual {v0, v4}, Lcom/viatech/camera/SettingActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/net/ConnectivityManager; |
|
|
|
.line 882 |
|
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo; |
|
|
|
move-result-object v0 |
|
|
|
.line 883 |
|
if-eqz v0, :cond_8 |
|
|
|
.line 884 |
|
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State; |
|
|
|
move-result-object v4 |
|
|
|
.line 885 |
|
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I |
|
|
|
move-result v5 |
|
|
|
.line 886 |
|
const-string v6, "VPAI_SettingActivity" |
|
|
|
new-instance v7, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v8, "<<< netInfo, type: " |
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v7 |
|
|
|
invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v5 |
|
|
|
const-string v7, ", state: " |
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v5 |
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v5 |
|
|
|
invoke-static {v6, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 887 |
|
sget-object v5, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State; |
|
|
|
if-ne v4, v5, :cond_6 |
|
|
|
move-object v1, v0 |
|
|
|
.line 892 |
|
:cond_6 |
|
:goto_2 |
|
if-nez v1, :cond_7 |
|
|
|
.line 893 |
|
const v0, 0x7f0701aa |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 896 |
|
:cond_7 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/SettingActivity;->access$1500(Lcom/viatech/camera/SettingActivity;)Landroid/app/AlertDialog; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/AlertDialog;->cancel()V |
|
|
|
.line 897 |
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$12;->this$0:Lcom/viatech/camera/SettingActivity; |
|
|
|
invoke-static {v0, v2, v3}, Lcom/viatech/camera/SettingActivity;->access$1600(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;Ljava/lang/String;)V |
|
|
|
goto/16 :goto_0 |
|
|
|
:cond_8 |
|
move-object v1, v0 |
|
|
|
goto :goto_2 |
|
|
|
:cond_9 |
|
move-object v0, v1 |
|
|
|
goto/16 :goto_1 |
|
.end method
|
|
|