今奥全景相机
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.

571 lines
12 KiB

.class public Lcom/viatech/Config;
.super Ljava/lang/Object;
.source "Config.java"
# static fields
.field public static final a:Ljava/lang/String;
.field public static final b:Ljava/lang/String;
.field public static final c:Ljava/lang/String;
.field public static final d:Ljava/lang/String;
.field public static final e:Ljava/lang/String;
.field public static final f:Ljava/lang/String;
.field public static final g:Ljava/lang/String;
.field public static h:Ljava/lang/String;
.field public static i:Ljava/lang/String;
.field public static j:Ljava/lang/String;
.field private static m:Lcom/viatech/Config;
# instance fields
.field public k:Z
.field private l:Landroid/content/Context;
.field private n:I
.field private o:I
.field private p:I
.field private q:I
.field private r:I
# direct methods
.method static constructor <clinit>()V
.locals 2
.prologue
.line 13
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/720VPAI"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->a:Ljava/lang/String;
.line 16
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/viatech/a;->e:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->b:Ljava/lang/String;
.line 19
sget-object v0, Landroid/os/Environment;->DIRECTORY_DCIM:Ljava/lang/String;
invoke-static {v0}, Landroid/os/Environment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->c:Ljava/lang/String;
.line 22
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
sget-object v1, Lcom/viatech/Config;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/Camera"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->d:Ljava/lang/String;
.line 23
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
sget-object v1, Lcom/viatech/Config;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/Original"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->e:Ljava/lang/String;
.line 24
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
sget-object v1, Lcom/viatech/Config;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/update"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->f:Ljava/lang/String;
.line 25
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
sget-object v1, Lcom/viatech/Config;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "/edit"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/Config;->g:Ljava/lang/String;
.line 36
const-string v0, ""
sput-object v0, Lcom/viatech/Config;->h:Ljava/lang/String;
.line 37
const-string v0, ""
sput-object v0, Lcom/viatech/Config;->i:Ljava/lang/String;
.line 38
const-string v0, ""
sput-object v0, Lcom/viatech/Config;->j:Ljava/lang/String;
.line 60
const/4 v0, 0x0
sput-object v0, Lcom/viatech/Config;->m:Lcom/viatech/Config;
return-void
.end method
.method private constructor <init>(Landroid/content/Context;)V
.locals 2
.prologue
const/4 v1, 0x0
.line 75
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 62
const/4 v0, 0x3
iput v0, p0, Lcom/viatech/Config;->n:I
.line 64
const/16 v0, 0x65
iput v0, p0, Lcom/viatech/Config;->o:I
.line 67
iput v1, p0, Lcom/viatech/Config;->p:I
.line 69
iput v1, p0, Lcom/viatech/Config;->q:I
.line 70
iput-boolean v1, p0, Lcom/viatech/Config;->k:Z
.line 73
iput v1, p0, Lcom/viatech/Config;->r:I
.line 76
iput-object p1, p0, Lcom/viatech/Config;->l:Landroid/content/Context;
.line 77
return-void
.end method
.method public static a()Lcom/viatech/Config;
.locals 1
.prologue
.line 86
sget-object v0, Lcom/viatech/Config;->m:Lcom/viatech/Config;
return-object v0
.end method
.method public static a(Landroid/content/Context;)V
.locals 1
.prologue
.line 80
sget-object v0, Lcom/viatech/Config;->m:Lcom/viatech/Config;
if-nez v0, :cond_0
.line 81
new-instance v0, Lcom/viatech/Config;
invoke-direct {v0, p0}, Lcom/viatech/Config;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/viatech/Config;->m:Lcom/viatech/Config;
.line 83
:cond_0
return-void
.end method
# virtual methods
.method public a(I)V
.locals 0
.prologue
.line 94
iput p1, p0, Lcom/viatech/Config;->n:I
.line 95
return-void
.end method
.method public a(Landroid/app/Activity;)V
.locals 1
.prologue
.line 137
iget-boolean v0, p0, Lcom/viatech/Config;->k:Z
if-eqz v0, :cond_0
const/16 v0, 0x9
:goto_0
invoke-virtual {p1, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V
.line 139
return-void
.line 137
:cond_0
const/4 v0, 0x1
goto :goto_0
.end method
.method public a(Landroid/app/Activity;Z)V
.locals 0
.prologue
.line 132
iput-boolean p2, p0, Lcom/viatech/Config;->k:Z
.line 133
invoke-virtual {p0, p1}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V
.line 134
return-void
.end method
.method public a(Z)V
.locals 2
.prologue
.line 147
iget-object v0, p0, Lcom/viatech/Config;->l:Landroid/content/Context;
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 148
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
.line 149
const-string v1, "SP_KEY_SUPPORT_3D"
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
.line 150
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
.line 151
return-void
.end method
.method public a(Ljava/lang/String;)Z
.locals 1
.prologue
.line 165
const-string v0, "_V3D"
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
return v0
.end method
.method public b()I
.locals 1
.prologue
.line 90
iget v0, p0, Lcom/viatech/Config;->n:I
return v0
.end method
.method public b(I)V
.locals 0
.prologue
.line 102
iput p1, p0, Lcom/viatech/Config;->o:I
.line 103
return-void
.end method
.method public b(Z)V
.locals 2
.prologue
.line 153
iget-object v0, p0, Lcom/viatech/Config;->l:Landroid/content/Context;
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 154
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
.line 155
const-string v1, "SP_KEY_SUPPORT_180"
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
.line 156
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
.line 157
return-void
.end method
.method public c()I
.locals 1
.prologue
.line 98
iget v0, p0, Lcom/viatech/Config;->o:I
return v0
.end method
.method public c(I)V
.locals 0
.prologue
.line 106
iput p1, p0, Lcom/viatech/Config;->r:I
.line 107
return-void
.end method
.method public d()I
.locals 1
.prologue
.line 110
iget v0, p0, Lcom/viatech/Config;->r:I
return v0
.end method
.method public d(I)V
.locals 0
.prologue
.line 120
iput p1, p0, Lcom/viatech/Config;->p:I
.line 121
return-void
.end method
.method public e()I
.locals 1
.prologue
.line 113
iget v0, p0, Lcom/viatech/Config;->p:I
return v0
.end method
.method public e(I)V
.locals 0
.prologue
.line 124
iput p1, p0, Lcom/viatech/Config;->q:I
.line 125
return-void
.end method
.method public f()I
.locals 1
.prologue
.line 116
iget v0, p0, Lcom/viatech/Config;->q:I
return v0
.end method
.method public g()Z
.locals 3
.prologue
.line 142
iget-object v0, p0, Lcom/viatech/Config;->l:Landroid/content/Context;
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 143
const-string v1, "SP_KEY_SUPPORT_3D"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
return v0
.end method
.method public h()Z
.locals 3
.prologue
.line 160
iget-object v0, p0, Lcom/viatech/Config;->l:Landroid/content/Context;
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 161
const-string v1, "SP_KEY_SUPPORT_180"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
return v0
.end method