.class public Lcom/viatech/cloud/ShareAppActivity; .super Landroid/app/Activity; .source "ShareAppActivity.java" # direct methods .method public constructor ()V .locals 0 .prologue .line 22 invoke-direct {p0}, Landroid/app/Activity;->()V return-void .end method .method private setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V .locals 7 .prologue const/4 v6, 0x0 const/4 v5, -0x2 const/4 v4, 0x1 .line 65 invoke-virtual {p0}, Lcom/viatech/cloud/ShareAppActivity;->getActionBar()Landroid/app/ActionBar; move-result-object v0 .line 66 if-nez v0, :cond_0 .line 80 :goto_0 return-void .line 67 :cond_0 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V .line 68 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x12 if-lt v1, v2, :cond_1 .line 69 invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V .line 70 :cond_1 const/4 v1, 0x0 invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V .line 71 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V .line 72 invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V .line 73 new-instance v1, Landroid/widget/TextView; invoke-direct {v1, p0}, Landroid/widget/TextView;->(Landroid/content/Context;)V .line 74 invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 75 const/4 v2, -0x1 invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V .line 76 invoke-virtual {p0}, Lcom/viatech/cloud/ShareAppActivity;->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 77 new-instance v2, Landroid/app/ActionBar$LayoutParams; const/16 v3, 0x11 invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;->(III)V invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V .line 79 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V goto :goto_0 .end method # virtual methods .method public onBackPressed()V .locals 0 .prologue .line 53 invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V .line 54 return-void .end method .method protected onCreate(Landroid/os/Bundle;)V .locals 3 .prologue .line 25 invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V .line 26 const v0, 0x7f030032 invoke-virtual {p0, v0}, Lcom/viatech/cloud/ShareAppActivity;->setContentView(I)V .line 27 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 29 invoke-virtual {p0}, Lcom/viatech/cloud/ShareAppActivity;->getActionBar()Landroid/app/ActionBar; move-result-object v0 .line 30 if-eqz v0, :cond_0 .line 31 invoke-virtual {p0}, Lcom/viatech/cloud/ShareAppActivity;->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 32 const v0, 0x7f070043 invoke-virtual {p0, v0}, Lcom/viatech/cloud/ShareAppActivity;->getString(I)Ljava/lang/String; move-result-object v0 const v1, 0x7f020081 invoke-direct {p0, v0, v1}, Lcom/viatech/cloud/ShareAppActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V .line 35 :cond_0 const v0, 0x7f0c0129 invoke-virtual {p0, v0}, Lcom/viatech/cloud/ShareAppActivity;->findViewById(I)Landroid/view/View; move-result-object v0 new-instance v1, Lcom/viatech/cloud/ShareAppActivity$1; invoke-direct {v1, p0}, Lcom/viatech/cloud/ShareAppActivity$1;->(Lcom/viatech/cloud/ShareAppActivity;)V invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 43 const v0, 0x7f0c012a invoke-virtual {p0, v0}, Lcom/viatech/cloud/ShareAppActivity;->findViewById(I)Landroid/view/View; move-result-object v0 new-instance v1, Lcom/viatech/cloud/ShareAppActivity$2; invoke-direct {v1, p0}, Lcom/viatech/cloud/ShareAppActivity$2;->(Lcom/viatech/cloud/ShareAppActivity;)V invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 49 return-void .end method .method public onOptionsItemSelected(Landroid/view/MenuItem;)Z .locals 2 .prologue .line 58 invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I move-result v0 const v1, 0x102002c if-ne v0, v1, :cond_0 .line 59 invoke-virtual {p0}, Lcom/viatech/cloud/ShareAppActivity;->onBackPressed()V .line 61 :cond_0 const/4 v0, 0x1 return v0 .end method .method public shareText()V .locals 6 .prologue .line 83 new-instance v0, Landroid/content/Intent; invoke-direct {v0}, Landroid/content/Intent;->()V .line 84 const-string v1, "android.intent.action.SEND" invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent; .line 85 const-string v1, "android.intent.extra.TEXT" const v2, 0x7f070173 const/4 v3, 0x1 new-array v3, v3, [Ljava/lang/Object; const/4 v4, 0x0 const v5, 0x7f070201 invoke-virtual {p0, v5}, Lcom/viatech/cloud/ShareAppActivity;->getString(I)Ljava/lang/String; move-result-object v5 aput-object v5, v3, v4 invoke-virtual {p0, v2, v3}, Lcom/viatech/cloud/ShareAppActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 86 const-string v1, "text/plain" invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent; .line 87 const v1, 0x7f07017f invoke-virtual {p0, v1}, Lcom/viatech/cloud/ShareAppActivity;->getString(I)Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent; move-result-object v0 invoke-virtual {p0, v0}, Lcom/viatech/cloud/ShareAppActivity;->startActivity(Landroid/content/Intent;)V .line 88 return-void .end method