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.
355 lines
8.8 KiB
355 lines
8.8 KiB
.class Lcom/viatech/VPaiMainView$1; |
|
.super Ljava/lang/Object; |
|
.source "VPaiMainView.java" |
|
|
|
# interfaces |
|
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/VPaiMainView; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic a:Lcom/viatech/VPaiMainView; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/VPaiMainView;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 84 |
|
iput-object p1, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onPageScrollStateChanged(I)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 88 |
|
return-void |
|
.end method |
|
|
|
.method public onPageScrolled(IFI)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 92 |
|
return-void |
|
.end method |
|
|
|
.method public onPageSelected(I)V |
|
.locals 7 |
|
|
|
.prologue |
|
const/16 v6, 0x11 |
|
|
|
const/4 v1, 0x0 |
|
|
|
const/4 v5, -0x1 |
|
|
|
.line 96 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->a(Lcom/viatech/VPaiMainView;)[Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v0 |
|
|
|
aget-object v0, v0, p1 |
|
|
|
.line 97 |
|
if-nez v0, :cond_1 |
|
|
|
.line 145 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 100 |
|
:cond_1 |
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2}, Lcom/viatech/VPaiMainView;->b(Lcom/viatech/VPaiMainView;)Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v2 |
|
|
|
if-eqz v2, :cond_2 |
|
|
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2}, Lcom/viatech/VPaiMainView;->b(Lcom/viatech/VPaiMainView;)Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v2 |
|
|
|
iget-boolean v2, v2, Lcom/viatech/widget/IPagerView;->mInitialized:Z |
|
|
|
if-eqz v2, :cond_2 |
|
|
|
.line 101 |
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2}, Lcom/viatech/VPaiMainView;->b(Lcom/viatech/VPaiMainView;)Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2}, Lcom/viatech/widget/IPagerView;->onDeactivate()V |
|
|
|
.line 103 |
|
:cond_2 |
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2, v0}, Lcom/viatech/VPaiMainView;->a(Lcom/viatech/VPaiMainView;Lcom/viatech/widget/IPagerView;)Lcom/viatech/widget/IPagerView; |
|
|
|
.line 104 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->b(Lcom/viatech/VPaiMainView;)Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v0 |
|
|
|
iget-boolean v0, v0, Lcom/viatech/widget/IPagerView;->mInitialized:Z |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 105 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->b(Lcom/viatech/VPaiMainView;)Lcom/viatech/widget/IPagerView; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/viatech/widget/IPagerView;->onActivate()V |
|
|
|
:cond_3 |
|
move v0, v1 |
|
|
|
.line 107 |
|
:goto_1 |
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2}, Lcom/viatech/VPaiMainView;->c(Lcom/viatech/VPaiMainView;)[Lcom/viatech/widget/TabPageView; |
|
|
|
move-result-object v2 |
|
|
|
array-length v2, v2 |
|
|
|
if-ge v0, v2, :cond_5 |
|
|
|
.line 108 |
|
iget-object v2, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v2}, Lcom/viatech/VPaiMainView;->c(Lcom/viatech/VPaiMainView;)[Lcom/viatech/widget/TabPageView; |
|
|
|
move-result-object v2 |
|
|
|
aget-object v3, v2, v0 |
|
|
|
if-ne v0, p1, :cond_4 |
|
|
|
const/4 v2, 0x1 |
|
|
|
:goto_2 |
|
invoke-virtual {v3, v2}, Lcom/viatech/widget/TabPageView;->setTabSelect(Z)V |
|
|
|
.line 107 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_1 |
|
|
|
:cond_4 |
|
move v2, v1 |
|
|
|
.line 108 |
|
goto :goto_2 |
|
|
|
.line 111 |
|
:cond_5 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v2 |
|
|
|
.line 112 |
|
if-eqz v2, :cond_0 |
|
|
|
.line 115 |
|
invoke-static {}, Lcom/viatech/VPaiMainView;->a()I |
|
|
|
move-result v0 |
|
|
|
if-eq p1, v0, :cond_8 |
|
|
|
.line 116 |
|
invoke-static {}, Lcom/viatech/VPaiMainView;->b()I |
|
|
|
move-result v0 |
|
|
|
if-ne p1, v0, :cond_6 |
|
|
|
.line 117 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->e(Lcom/viatech/VPaiMainView;)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
.line 130 |
|
:goto_3 |
|
new-instance v1, Landroid/app/ActionBar$LayoutParams; |
|
|
|
invoke-direct {v1, v5, v5, v6}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V |
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V |
|
|
|
.line 137 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f02023d |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v2, v0}, Landroid/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V |
|
|
|
.line 141 |
|
:goto_4 |
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I |
|
|
|
const/16 v1, 0xe |
|
|
|
if-lt v0, v1, :cond_0 |
|
|
|
.line 142 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->invalidateOptionsMenu()V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 118 |
|
:cond_6 |
|
invoke-static {}, Lcom/viatech/VPaiMainView;->c()I |
|
|
|
move-result v0 |
|
|
|
if-ne p1, v0, :cond_7 |
|
|
|
sget-boolean v0, Lcom/viatech/a;->r:Z |
|
|
|
if-eqz v0, :cond_7 |
|
|
|
.line 119 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->f(Lcom/viatech/VPaiMainView;)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_3 |
|
|
|
.line 122 |
|
:cond_7 |
|
new-instance v0, Landroid/widget/TextView; |
|
|
|
iget-object v3, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v3}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v3 |
|
|
|
invoke-direct {v0, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 123 |
|
iget-object v3, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v3}, Lcom/viatech/VPaiMainView;->g(Lcom/viatech/VPaiMainView;)[I |
|
|
|
move-result-object v3 |
|
|
|
aget v3, v3, p1 |
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V |
|
|
|
.line 124 |
|
invoke-virtual {v0, v5}, Landroid/widget/TextView;->setTextColor(I)V |
|
|
|
.line 125 |
|
iget-object v3, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
.line 126 |
|
invoke-static {v3}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v3 |
|
|
|
const v4, 0x7f0800c0 |
|
|
|
invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimension(I)F |
|
|
|
move-result v3 |
|
|
|
.line 125 |
|
invoke-virtual {v0, v1, v3}, Landroid/widget/TextView;->setTextSize(IF)V |
|
|
|
.line 127 |
|
invoke-virtual {v0, v6}, Landroid/widget/TextView;->setGravity(I)V |
|
|
|
goto :goto_3 |
|
|
|
.line 139 |
|
:cond_8 |
|
iget-object v0, p0, Lcom/viatech/VPaiMainView$1;->a:Lcom/viatech/VPaiMainView; |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiMainView;->d(Lcom/viatech/VPaiMainView;)Landroid/app/Activity; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f02023e |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v2, v0}, Landroid/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V |
|
|
|
goto :goto_4 |
|
.end method
|
|
|