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.
432 lines
10 KiB
432 lines
10 KiB
.class public Lcom/viatech/AboutActivity; |
|
.super Landroid/app/Activity; |
|
.source "AboutActivity.java" |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 25 |
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method private a()Ljava/lang/String; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 140 |
|
:try_start_0 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getApplicationContext()Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; |
|
|
|
move-result-object v0 |
|
|
|
.line 141 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getApplicationContext()Landroid/content/Context; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; |
|
|
|
move-result-object v0 |
|
|
|
.line 142 |
|
iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String; |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 146 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 144 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 145 |
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
.line 146 |
|
const-string v0, "" |
|
|
|
goto :goto_0 |
|
.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 120 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v0 |
|
|
|
.line 121 |
|
if-nez v0, :cond_0 |
|
|
|
.line 136 |
|
:goto_0 |
|
return-void |
|
|
|
.line 123 |
|
:cond_0 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V |
|
|
|
.line 124 |
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I |
|
|
|
const/16 v2, 0x12 |
|
|
|
if-lt v1, v2, :cond_1 |
|
|
|
.line 125 |
|
invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V |
|
|
|
.line 126 |
|
:cond_1 |
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V |
|
|
|
.line 127 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V |
|
|
|
.line 128 |
|
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V |
|
|
|
.line 129 |
|
new-instance v1, Landroid/widget/TextView; |
|
|
|
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 130 |
|
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 131 |
|
const/4 v2, -0x1 |
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V |
|
|
|
.line 132 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->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 133 |
|
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 135 |
|
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method protected onCreate(Landroid/os/Bundle;)V |
|
.locals 9 |
|
|
|
.prologue |
|
const v8, 0x7f0c0075 |
|
|
|
const/16 v7, 0x8 |
|
|
|
const/4 v6, 0x0 |
|
|
|
const/4 v5, 0x1 |
|
|
|
.line 31 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V |
|
|
|
.line 32 |
|
const v0, 0x7f03001b |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->setContentView(I)V |
|
|
|
.line 33 |
|
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 35 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v0 |
|
|
|
.line 36 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 37 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->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 38 |
|
const v0, 0x7f070199 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f020081 |
|
|
|
invoke-direct {p0, v0, v1}, Lcom/viatech/AboutActivity;->a(Ljava/lang/String;I)V |
|
|
|
.line 40 |
|
:cond_0 |
|
sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String; |
|
|
|
.line 41 |
|
const v0, 0x7f0c0074 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getApplicationContext()Landroid/content/Context; |
|
|
|
move-result-object v2 |
|
|
|
const v3, 0x7f070136 |
|
|
|
new-array v4, v5, [Ljava/lang/Object; |
|
|
|
aput-object v1, v4, v6 |
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 42 |
|
const v0, 0x7f0c0073 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getApplicationContext()Landroid/content/Context; |
|
|
|
move-result-object v1 |
|
|
|
const v2, 0x7f070047 |
|
|
|
new-array v3, v5, [Ljava/lang/Object; |
|
|
|
invoke-direct {p0}, Lcom/viatech/AboutActivity;->a()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
aput-object v4, v3, v6 |
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 45 |
|
invoke-static {p0}, Lcom/viatech/util/APPChannelManager;->isGooglePlayChannel(Landroid/content/Context;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 46 |
|
invoke-virtual {p0, v8}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V |
|
|
|
.line 62 |
|
:goto_0 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->getApplicationContext()Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f070040 |
|
|
|
new-array v2, v5, [Ljava/lang/Object; |
|
|
|
const/16 v3, 0x7e2 |
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
|
|
|
move-result-object v3 |
|
|
|
aput-object v3, v2, v6 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
.line 63 |
|
const v0, 0x7f0c0079 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 64 |
|
const v0, 0x7f0c0076 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/AboutActivity$2; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/AboutActivity$2;-><init>(Lcom/viatech/AboutActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 76 |
|
const v0, 0x7f0c0077 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/AboutActivity$3; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/AboutActivity$3;-><init>(Lcom/viatech/AboutActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 87 |
|
const v0, 0x7f0c0078 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
.line 88 |
|
sget-boolean v1, Lcom/viatech/a;->t:Z |
|
|
|
if-eqz v1, :cond_2 |
|
|
|
.line 89 |
|
new-instance v1, Lcom/viatech/AboutActivity$4; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/AboutActivity$4;-><init>(Lcom/viatech/AboutActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 97 |
|
invoke-virtual {v0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, v7}, Landroid/text/TextPaint;->setFlags(I)V |
|
|
|
.line 98 |
|
invoke-virtual {v0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, v5}, Landroid/text/TextPaint;->setAntiAlias(Z)V |
|
|
|
.line 109 |
|
:goto_1 |
|
return-void |
|
|
|
.line 48 |
|
:cond_1 |
|
invoke-virtual {p0, v8}, Lcom/viatech/AboutActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Lcom/viatech/AboutActivity$1; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/AboutActivity$1;-><init>(Lcom/viatech/AboutActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 100 |
|
:cond_2 |
|
const/4 v1, 0x4 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
goto :goto_1 |
|
.end method |
|
|
|
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z |
|
.locals 2 |
|
|
|
.prologue |
|
.line 113 |
|
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I |
|
|
|
move-result v0 |
|
|
|
const v1, 0x102002c |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 114 |
|
invoke-virtual {p0}, Lcom/viatech/AboutActivity;->onBackPressed()V |
|
|
|
.line 116 |
|
:cond_0 |
|
const/4 v0, 0x1 |
|
|
|
return v0 |
|
.end method
|
|
|