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

.class public Lcom/viatech/FaqActivity;
.super Landroid/app/Activity;
.source "FaqActivity.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# instance fields
.field private a:Landroid/view/View;
.field private b:Landroid/webkit/WebView;
.field private c:Landroid/widget/ProgressBar;
.field private d:Ljava/lang/String;
.field private e:Landroid/webkit/WebViewClient;
.field private f:Landroid/webkit/WebChromeClient;
# direct methods
.method public constructor <init>()V
.locals 1
.prologue
.line 27
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 34
const-string v0, "http://www.vpai360.com/faq.html"
iput-object v0, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
.line 176
new-instance v0, Lcom/viatech/FaqActivity$1;
invoke-direct {v0, p0}, Lcom/viatech/FaqActivity$1;-><init>(Lcom/viatech/FaqActivity;)V
iput-object v0, p0, Lcom/viatech/FaqActivity;->e:Landroid/webkit/WebViewClient;
.line 215
new-instance v0, Lcom/viatech/FaqActivity$2;
invoke-direct {v0, p0}, Lcom/viatech/FaqActivity$2;-><init>(Lcom/viatech/FaqActivity;)V
iput-object v0, p0, Lcom/viatech/FaqActivity;->f:Landroid/webkit/WebChromeClient;
return-void
.end method
.method static synthetic a(Lcom/viatech/FaqActivity;)Landroid/webkit/WebView;
.locals 1
.prologue
.line 27
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
return-object v0
.end method
.method private a()V
.locals 4
.prologue
const/4 v3, 0x0
.line 101
invoke-virtual {p0}, Lcom/viatech/FaqActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 102
if-eqz v0, :cond_0
.line 103
invoke-virtual {p0}, Lcom/viatech/FaqActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f02023d
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 104
const v0, 0x7f070041
invoke-virtual {p0, v0}, Lcom/viatech/FaqActivity;->getString(I)Ljava/lang/String;
move-result-object v0
const v1, 0x7f020081
invoke-direct {p0, v0, v1}, Lcom/viatech/FaqActivity;->a(Ljava/lang/String;I)V
.line 107
:cond_0
const v0, 0x7f0c00d5
invoke-virtual {p0, v0}, Lcom/viatech/FaqActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/FaqActivity;->a:Landroid/view/View;
.line 108
iget-object v0, p0, Lcom/viatech/FaqActivity;->a:Landroid/view/View;
invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 110
const v0, 0x7f0c00d7
invoke-virtual {p0, v0}, Lcom/viatech/FaqActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/webkit/WebView;
iput-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
.line 111
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;
move-result-object v0
.line 112
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V
.line 113
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V
.line 114
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V
.line 115
invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V
.line 116
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
iget-object v1, p0, Lcom/viatech/FaqActivity;->e:Landroid/webkit/WebViewClient;
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V
.line 117
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
iget-object v1, p0, Lcom/viatech/FaqActivity;->f:Landroid/webkit/WebChromeClient;
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V
.line 119
const-string v0, "http://www.vpai360.com/faq.html"
iput-object v0, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
.line 121
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 122
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "?radom="
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
.line 138
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
iget-object v1, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
.line 140
const v0, 0x7f0c00d6
invoke-virtual {p0, v0}, Lcom/viatech/FaqActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ProgressBar;
iput-object v0, p0, Lcom/viatech/FaqActivity;->c:Landroid/widget/ProgressBar;
.line 141
return-void
.end method
.method static synthetic a(Lcom/viatech/FaqActivity;Z)V
.locals 0
.prologue
.line 27
invoke-direct {p0, p1}, Lcom/viatech/FaqActivity;->a(Z)V
return-void
.end method
.method private a(Ljava/lang/String;I)V
.locals 7
.prologue
const/4 v6, 0x0
const/4 v5, -0x2
const/4 v4, 0x1
.line 144
invoke-virtual {p0}, Lcom/viatech/FaqActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 145
if-nez v0, :cond_0
.line 160
:goto_0
return-void
.line 147
:cond_0
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V
.line 148
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x12
if-lt v1, v2, :cond_1
.line 149
invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V
.line 150
:cond_1
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 151
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V
.line 152
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V
.line 153
new-instance v1, Landroid/widget/TextView;
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 154
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 155
const/4 v2, -0x1
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
.line 156
invoke-virtual {p0}, Lcom/viatech/FaqActivity;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f0800c0
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F
move-result v2
invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 157
new-instance v2, Landroid/app/ActionBar$LayoutParams;
const/16 v3, 0x11
invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V
invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V
.line 159
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V
goto :goto_0
.end method
.method private a(Z)V
.locals 3
.prologue
const/16 v2, 0x8
const/4 v1, 0x0
.line 163
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
if-nez v0, :cond_0
.line 164
const-string v0, "VPai_FaqActivity"
const-string v1, "showLoadUi() mWebView==null"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 174
:goto_0
return-void
.line 167
:cond_0
if-eqz p1, :cond_1
.line 168
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V
.line 169
iget-object v0, p0, Lcom/viatech/FaqActivity;->a:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 171
:cond_1
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0, v2}, Landroid/webkit/WebView;->setVisibility(I)V
.line 172
iget-object v0, p0, Lcom/viatech/FaqActivity;->a:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.end method
.method static synthetic b(Lcom/viatech/FaqActivity;)Landroid/widget/ProgressBar;
.locals 1
.prologue
.line 27
iget-object v0, p0, Lcom/viatech/FaqActivity;->c:Landroid/widget/ProgressBar;
return-object v0
.end method
# virtual methods
.method public onBackPressed()V
.locals 0
.prologue
.line 73
invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V
.line 74
return-void
.end method
.method public onClick(Landroid/view/View;)V
.locals 2
.prologue
.line 88
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result v0
packed-switch v0, :pswitch_data_0
.line 98
:goto_0
return-void
.line 91
:pswitch_0
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->removeAllViews()V
.line 92
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->clearHistory()V
.line 93
iget-object v0, p0, Lcom/viatech/FaqActivity;->a:Landroid/view/View;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 94
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V
.line 95
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
iget-object v1, p0, Lcom/viatech/FaqActivity;->d:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
goto :goto_0
.line 88
nop
:pswitch_data_0
.packed-switch 0x7f0c00d5
:pswitch_0
.end packed-switch
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 1
.prologue
.line 38
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 39
const v0, 0x7f030029
invoke-virtual {p0, v0}, Lcom/viatech/FaqActivity;->setContentView(I)V
.line 40
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V
.line 42
invoke-direct {p0}, Lcom/viatech/FaqActivity;->a()V
.line 43
return-void
.end method
.method protected onDestroy()V
.locals 2
.prologue
.line 58
const-string v0, "VPai_FaqActivity"
const-string v1, "onDestroy()"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 59
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V
.line 60
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->clearCache(Z)V
.line 61
iget-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->destroy()V
.line 62
const/4 v0, 0x0
iput-object v0, p0, Lcom/viatech/FaqActivity;->b:Landroid/webkit/WebView;
.line 64
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
.line 65
return-void
.end method
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
.locals 2
.prologue
.line 78
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
move-result v0
const v1, 0x102002c
if-ne v0, v1, :cond_0
.line 79
const-string v0, "VPai_FaqActivity"
const-string v1, "finish()"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 80
invoke-virtual {p0}, Lcom/viatech/FaqActivity;->finish()V
.line 82
:cond_0
const/4 v0, 0x1
return v0
.end method
.method protected onPause()V
.locals 0
.prologue
.line 52
invoke-super {p0}, Landroid/app/Activity;->onPause()V
.line 54
return-void
.end method
.method protected onResume()V
.locals 0
.prologue
.line 47
invoke-super {p0}, Landroid/app/Activity;->onResume()V
.line 48
return-void
.end method