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.
466 lines
14 KiB
466 lines
14 KiB
2 years ago
|
.class Lcom/viatech/camera/SettingActivity$9;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "SettingActivity.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/widget/AdapterView$OnItemClickListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/camera/SettingActivity;->setDialogChoice(Landroid/view/View;Landroid/widget/TextView;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Ljava/lang/String;)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$adapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
|
||
|
|
||
|
.field final synthetic val$alertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
.field final synthetic val$key:Ljava/lang/String;
|
||
|
|
||
|
.field final synthetic val$textView:Landroid/widget/TextView;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/viatech/camera/SettingActivity;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Landroid/widget/TextView;Ljava/lang/String;Landroid/app/AlertDialog;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 606
|
||
|
iput-object p1, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
iput-object p2, p0, Lcom/viatech/camera/SettingActivity$9;->val$adapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
|
||
|
|
||
|
iput-object p3, p0, Lcom/viatech/camera/SettingActivity$9;->val$textView:Landroid/widget/TextView;
|
||
|
|
||
|
iput-object p4, p0, Lcom/viatech/camera/SettingActivity$9;->val$key:Ljava/lang/String;
|
||
|
|
||
|
iput-object p5, p0, Lcom/viatech/camera/SettingActivity$9;->val$alertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/widget/AdapterView",
|
||
|
"<*>;",
|
||
|
"Landroid/view/View;",
|
||
|
"IJ)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const v3, 0x7f070104
|
||
|
|
||
|
.line 609
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$9;->val$adapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
|
||
|
|
||
|
invoke-virtual {v0, p3}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;->getItem(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/String;
|
||
|
|
||
|
.line 610
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->val$adapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;->setCurrent(Ljava/lang/String;)V
|
||
|
|
||
|
.line 611
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->val$textView:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 612
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->val$key:Ljava/lang/String;
|
||
|
|
||
|
const-string v2, "CAMERA_SHUTDOWN_TIME"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
.line 613
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "5"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-virtual {v2, v3}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
.line 614
|
||
|
const-string v0, "5"
|
||
|
|
||
|
.line 616
|
||
|
:cond_0
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "10"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-virtual {v2, v3}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
.line 617
|
||
|
const-string v0, "10"
|
||
|
|
||
|
.line 619
|
||
|
:cond_1
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
const v2, 0x7f070193
|
||
|
|
||
|
invoke-virtual {v1, v2}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
.line 620
|
||
|
const-string v0, "0"
|
||
|
|
||
|
.line 622
|
||
|
:cond_2
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->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$9$1;
|
||
|
|
||
|
invoke-direct {v2, p0}, Lcom/viatech/camera/SettingActivity$9$1;-><init>(Lcom/viatech/camera/SettingActivity$9;)V
|
||
|
|
||
|
invoke-virtual {v1, v0, v2}, Lcom/viatech/device/VPaiDevice;->setDeviceShutdownTime(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V
|
||
|
|
||
|
.line 629
|
||
|
:cond_3
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->val$key:Ljava/lang/String;
|
||
|
|
||
|
const-string v2, "CAMERA_RESOLUTION"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_8
|
||
|
|
||
|
.line 630
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->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
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_8
|
||
|
|
||
|
.line 631
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/camera/SettingActivity;->access$1400(Lcom/viatech/camera/SettingActivity;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 632
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
|
||
|
|
||
|
const-string v3, "VP751 M01"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_5
|
||
|
|
||
|
.line 633
|
||
|
const-string v2, "CAMERA_VTP_RESOLUTION_VP751_M01"
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
.line 645
|
||
|
:cond_4
|
||
|
:goto_0
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||
|
|
||
|
.line 652
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$9;->val$alertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V
|
||
|
|
||
|
.line 671
|
||
|
:goto_1
|
||
|
return-void
|
||
|
|
||
|
.line 634
|
||
|
:cond_5
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
|
||
|
|
||
|
const-string v3, "VP751 M02"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_4
|
||
|
|
||
|
.line 635
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/camera/SettingActivity;->access$1400(Lcom/viatech/camera/SettingActivity;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "CAMERA_SUPPORT_4K"
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
.line 636
|
||
|
const-string v3, "2880x1440"
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_6
|
||
|
|
||
|
const-string v3, "3840x1920"
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_7
|
||
|
|
||
|
.line 637
|
||
|
:cond_6
|
||
|
if-nez v2, :cond_7
|
||
|
|
||
|
.line 638
|
||
|
const v0, 0x7f0701f3
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
|
||
|
|
||
|
.line 639
|
||
|
const-string v0, "1920x960"
|
||
|
|
||
|
.line 640
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->val$textView:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 643
|
||
|
:cond_7
|
||
|
const-string v2, "CAMERA_VTP_RESOLUTION_VP751_M02"
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 656
|
||
|
:cond_8
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->val$key:Ljava/lang/String;
|
||
|
|
||
|
const-string v2, "CAMERA_RESOLUTION_PHOTO"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_b
|
||
|
|
||
|
.line 657
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/camera/SettingActivity;->access$1400(Lcom/viatech/camera/SettingActivity;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 658
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
|
||
|
|
||
|
const-string v3, "VP751 M01"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_a
|
||
|
|
||
|
.line 659
|
||
|
const-string v2, "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M01"
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
.line 663
|
||
|
:cond_9
|
||
|
:goto_2
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||
|
|
||
|
.line 664
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$9;->val$alertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 660
|
||
|
:cond_a
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/camera/SettingActivity;->access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
|
||
|
|
||
|
const-string v3, "VP751 M02"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_9
|
||
|
|
||
|
.line 661
|
||
|
const-string v2, "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02"
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
.line 667
|
||
|
:cond_b
|
||
|
iget-object v1, p0, Lcom/viatech/camera/SettingActivity$9;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/camera/SettingActivity;->access$1400(Lcom/viatech/camera/SettingActivity;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 668
|
||
|
iget-object v2, p0, Lcom/viatech/camera/SettingActivity$9;->val$key:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
.line 669
|
||
|
invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||
|
|
||
|
.line 670
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$9;->val$alertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
.end method
|