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.
108 lines
2.7 KiB
108 lines
2.7 KiB
2 years ago
|
.class Lcom/viatech/camera/SettingActivity$4;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "SettingActivity.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/zcw/togglebutton/ToggleButton$OnToggleChanged;
|
||
|
|
||
|
|
||
|
# 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 377
|
||
|
iput-object p1, p0, Lcom/viatech/camera/SettingActivity$4;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onToggle(Z)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 380
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$4;->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 381
|
||
|
const v0, 0x7f07012c
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
|
||
|
|
||
|
.line 393
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 385
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/viatech/camera/SettingActivity$4;->this$0:Lcom/viatech/camera/SettingActivity;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/viatech/camera/SettingActivity;->getApplicationContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 386
|
||
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 387
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
.line 388
|
||
|
const-string v1, "CAMERA_AUDIO_FLAG"
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
.line 392
|
||
|
:goto_1
|
||
|
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 390
|
||
|
:cond_1
|
||
|
const-string v1, "CAMERA_AUDIO_FLAG"
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
||
|
|
||
|
goto :goto_1
|
||
|
.end method
|