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

886 lines
26 KiB

.class public Lcom/viatech/widget/ConnectViewPager;
.super Landroid/support/v4/view/ViewPager;
.source "ConnectViewPager.java"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/widget/ConnectViewPager$ConnectPagerAdapter;,
Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;,
Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;
}
.end annotation
# static fields
.field private static final FIRST_PAGE:Ljava/lang/String; = "first_page"
.field private static final TAG:Ljava/lang/String; = "ConnectViewPager"
.field public static final USB:I = 0x0
.field public static final WIFI:I = 0x1
# instance fields
.field private connectUsbView:Landroid/view/View;
.field private connectWifiView:Landroid/view/View;
.field private listener:Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;
.field private mBtnCancelWifi:Landroid/widget/Button;
.field private mBtnConnectWifi:Landroid/widget/Button;
.field private mImgConnectWifi:Landroid/widget/ImageView;
.field private mTxtConnectUsbTips1:Landroid/widget/TextView;
.field private mTxtConnectUsbTips2:Landroid/widget/TextView;
.field private mTxtConnectWifiTips1:Landroid/widget/TextView;
.field private mTxtConnectWifiTips2:Landroid/widget/TextView;
.field private mUsblayout:Landroid/view/View;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
.prologue
.line 45
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/viatech/widget/ConnectViewPager;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 46
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
.prologue
.line 49
invoke-direct {p0, p1, p2}, Landroid/support/v4/view/ViewPager;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 50
invoke-direct {p0, p1}, Lcom/viatech/widget/ConnectViewPager;->initView(Landroid/content/Context;)V
.line 51
return-void
.end method
.method static synthetic access$000(Lcom/viatech/widget/ConnectViewPager;ILjava/lang/String;)V
.locals 0
.prologue
.line 26
invoke-direct {p0, p1, p2}, Lcom/viatech/widget/ConnectViewPager;->showUsbTips(ILjava/lang/String;)V
return-void
.end method
.method static synthetic access$100(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)Ljava/lang/String;
.locals 1
.prologue
.line 26
invoke-direct {p0, p1}, Lcom/viatech/widget/ConnectViewPager;->autoSplitText(Landroid/widget/TextView;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private autoSplitText(Landroid/widget/TextView;)Ljava/lang/String;
.locals 3
.prologue
.line 213
invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
move-result-object v0
invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v0
.line 214
invoke-virtual {p1}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
.line 215
invoke-virtual {p1}, Landroid/widget/TextView;->getWidth()I
move-result v1
invoke-virtual {p1}, Landroid/widget/TextView;->getPaddingLeft()I
move-result v2
sub-int/2addr v1, v2
invoke-virtual {p1}, Landroid/widget/TextView;->getPaddingRight()I
move-result v2
sub-int/2addr v1, v2
.line 221
return-object v0
.end method
.method private getConnectedWifiSsid()Ljava/lang/String;
.locals 2
.prologue
.line 172
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "wifi"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/wifi/WifiManager;
.line 173
invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;
move-result-object v0
.line 174
invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private getUsbTips()V
.locals 3
.prologue
.line 91
invoke-static {}, Lcom/viatech/util/OTGSupportPhoneManager;->instance()Lcom/viatech/util/OTGSupportPhoneManager;
move-result-object v0
.line 92
if-nez v0, :cond_0
.line 93
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/viatech/util/OTGSupportPhoneManager;->create(Landroid/content/Context;)V
.line 94
invoke-static {}, Lcom/viatech/util/OTGSupportPhoneManager;->instance()Lcom/viatech/util/OTGSupportPhoneManager;
move-result-object v0
.line 96
:cond_0
invoke-virtual {v0}, Lcom/viatech/util/OTGSupportPhoneManager;->getSupportOTG()I
move-result v1
invoke-virtual {v0}, Lcom/viatech/util/OTGSupportPhoneManager;->getHowSetting()Ljava/lang/String;
move-result-object v2
invoke-direct {p0, v1, v2}, Lcom/viatech/widget/ConnectViewPager;->showUsbTips(ILjava/lang/String;)V
.line 97
new-instance v1, Lcom/viatech/widget/ConnectViewPager$1;
invoke-direct {v1, p0}, Lcom/viatech/widget/ConnectViewPager$1;-><init>(Lcom/viatech/widget/ConnectViewPager;)V
invoke-virtual {v0, v1}, Lcom/viatech/util/OTGSupportPhoneManager;->setCheckSupportPhoneListener(Lcom/viatech/util/OTGSupportPhoneManager$CheckSupportPhoneListener;)V
.line 108
invoke-virtual {v0}, Lcom/viatech/util/OTGSupportPhoneManager;->checkSupportPhone()V
.line 109
return-void
.end method
.method private initView(Landroid/content/Context;)V
.locals 5
.prologue
const/4 v2, 0x0
const/4 v4, 0x1
const/4 v3, 0x0
.line 57
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
.line 58
const v1, 0x7f03005c
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v1
iput-object v1, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
.line 59
const v1, 0x7f03005d
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
.line 61
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
const v1, 0x7f0c021e
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mUsblayout:Landroid/view/View;
.line 63
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0221
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mImgConnectWifi:Landroid/widget/ImageView;
.line 64
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
const v1, 0x7f0c021f
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
.line 65
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v0
new-instance v1, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
invoke-direct {v1, p0, v2}, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;-><init>(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)V
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 67
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
const v1, 0x7f0c0220
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
.line 68
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v0
new-instance v1, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-direct {v1, p0, v2}, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;-><init>(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)V
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 70
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0223
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
.line 71
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v0
new-instance v1, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
invoke-direct {v1, p0, v2}, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;-><init>(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)V
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 73
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0224
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
.line 74
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v0
new-instance v1, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
invoke-direct {v1, p0, v2}, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;-><init>(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)V
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 76
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0222
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
.line 77
invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v1
new-instance v2, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;
invoke-direct {v2, p0, v0}, Lcom/viatech/widget/ConnectViewPager$OnTvGlobalLayoutListener;-><init>(Lcom/viatech/widget/ConnectViewPager;Landroid/widget/TextView;)V
invoke-virtual {v1, v2}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 79
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0225
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
.line 80
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
const v1, 0x7f0c0226
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
iput-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
.line 81
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 82
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 83
invoke-direct {p0}, Lcom/viatech/widget/ConnectViewPager;->getUsbTips()V
.line 85
new-instance v1, Lcom/viatech/widget/ConnectViewPager$ConnectPagerAdapter;
sget-boolean v0, Lcom/viatech/a;->l:Z
if-eqz v0, :cond_0
const/4 v0, 0x2
new-array v0, v0, [Landroid/view/View;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
aput-object v2, v0, v3
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->connectWifiView:Landroid/view/View;
aput-object v2, v0, v4
:goto_0
invoke-direct {v1, p0, v0}, Lcom/viatech/widget/ConnectViewPager$ConnectPagerAdapter;-><init>(Lcom/viatech/widget/ConnectViewPager;[Landroid/view/View;)V
invoke-virtual {p0, v1}, Lcom/viatech/widget/ConnectViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V
.line 86
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getFirstPage()I
move-result v0
invoke-virtual {p0, v0}, Lcom/viatech/widget/ConnectViewPager;->setCurrentItem(I)V
.line 88
return-void
.line 85
:cond_0
new-array v0, v4, [Landroid/view/View;
iget-object v2, p0, Lcom/viatech/widget/ConnectViewPager;->connectUsbView:Landroid/view/View;
aput-object v2, v0, v3
goto :goto_0
.end method
.method private showUsbTips(ILjava/lang/String;)V
.locals 3
.prologue
const v1, 0x7f07006d
const/16 v2, 0x8
.line 112
const/4 v0, 0x1
if-ne p1, v0, :cond_0
.line 113
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 114
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
.line 126
:goto_0
return-void
.line 115
:cond_0
const/4 v0, 0x2
if-ne p1, v0, :cond_1
.line 116
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
const v1, 0x7f07006e
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 117
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_0
.line 118
:cond_1
const/4 v0, 0x3
if-ne p1, v0, :cond_2
.line 119
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 120
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 121
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_0
.line 123
:cond_2
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips1:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 124
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectUsbTips2:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_0
.end method
# virtual methods
.method public getFirstPage()I
.locals 3
.prologue
.line 185
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 186
const-string v1, "first_page"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result v0
return v0
.end method
.method public onClick(Landroid/view/View;)V
.locals 2
.prologue
.line 191
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->listener:Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;
if-eqz v0, :cond_0
.line 192
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->listener:Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;
invoke-virtual {p1}, Landroid/view/View;->getId()I
move-result v1
invoke-interface {v0, v1}, Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;->onClick(I)V
.line 194
:cond_0
return-void
.end method
.method public saveFirstPage(I)V
.locals 2
.prologue
.line 178
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 179
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
.line 180
const-string v1, "first_page"
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
.line 181
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
.line 182
return-void
.end method
.method public setCurrentItem(I)V
.locals 0
.prologue
.line 135
invoke-super {p0, p1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V
.line 137
return-void
.end method
.method public setOnClickWifiButtonListener(Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;)V
.locals 0
.prologue
.line 129
iput-object p1, p0, Lcom/viatech/widget/ConnectViewPager;->listener:Lcom/viatech/widget/ConnectViewPager$OnClickWifiButtonListener;
.line 130
return-void
.end method
.method public showConnectContent(ZZ)V
.locals 7
.prologue
const/16 v6, 0x8
const/4 v5, 0x0
.line 156
if-eqz p1, :cond_0
if-nez p2, :cond_0
.line 157
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
const v1, 0x7f07016c
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 158
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v1
const v2, 0x7f07016d
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
invoke-direct {p0}, Lcom/viatech/widget/ConnectViewPager;->getConnectedWifiSsid()Ljava/lang/String;
move-result-object v4
aput-object v4, v3, v5
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 159
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mImgConnectWifi:Landroid/widget/ImageView;
invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V
.line 160
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
invoke-virtual {v0, v6}, Landroid/widget/Button;->setVisibility(I)V
.line 161
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V
.line 169
:goto_0
return-void
.line 163
:cond_0
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
const v1, 0x7f070070
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 164
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
const v1, 0x7f070071
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 165
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mImgConnectWifi:Landroid/widget/ImageView;
invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V
.line 166
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V
.line 167
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
invoke-virtual {v0, v6}, Landroid/widget/Button;->setVisibility(I)V
goto :goto_0
.end method
.method public showConnecttingWifiContent()V
.locals 6
.prologue
const/4 v5, 0x0
.line 148
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
const v1, 0x7f07016c
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 149
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
invoke-virtual {p0}, Lcom/viatech/widget/ConnectViewPager;->getContext()Landroid/content/Context;
move-result-object v1
const v2, 0x7f07016d
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
invoke-direct {p0}, Lcom/viatech/widget/ConnectViewPager;->getConnectedWifiSsid()Ljava/lang/String;
move-result-object v4
aput-object v4, v3, v5
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 150
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mImgConnectWifi:Landroid/widget/ImageView;
invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V
.line 151
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V
.line 152
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V
.line 153
return-void
.end method
.method public showUnConnectedWifiContent()V
.locals 3
.prologue
const/16 v2, 0x8
.line 140
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips1:Landroid/widget/TextView;
const v1, 0x7f070070
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 141
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mTxtConnectWifiTips2:Landroid/widget/TextView;
const v1, 0x7f070071
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 142
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mImgConnectWifi:Landroid/widget/ImageView;
invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V
.line 143
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnConnectWifi:Landroid/widget/Button;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V
.line 144
iget-object v0, p0, Lcom/viatech/widget/ConnectViewPager;->mBtnCancelWifi:Landroid/widget/Button;
invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V
.line 145
return-void
.end method