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

652 lines
16 KiB

.class public Lcom/viatech/gallery/SharePopupWindow;
.super Landroid/widget/PopupWindow;
.source "SharePopupWindow.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/gallery/SharePopupWindow$ShareItem;
}
.end annotation
# static fields
.field public static final ALL:I = 0x1f
.field public static final FACEBOOK:I = 0x1
.field public static final OTHERS:I = 0x8
.field public static final VPAICLOUD:I = 0x4
.field public static final WEIXIN:I = 0x10
.field public static final YOUTUBE:I = 0x2
# instance fields
.field private mFacebookView:Landroid/view/View;
.field private mOthersView:Landroid/view/View;
.field private mShareView:Landroid/view/View;
.field private mVpaiCloudView:Landroid/view/View;
.field private mWeixinView:Landroid/view/View;
.field private mYouTubeView:Landroid/view/View;
# direct methods
.method public constructor <init>(Landroid/app/Activity;Landroid/view/View$OnClickListener;)V
.locals 4
.prologue
const/16 v3, 0x8
.line 35
invoke-direct {p0, p1}, Landroid/widget/PopupWindow;-><init>(Landroid/content/Context;)V
.line 36
const-string v0, "layout_inflater"
invoke-virtual {p1, v0}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/LayoutInflater;
.line 37
const v1, 0x7f0300ae
const/4 v2, 0x0
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/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
.line 38
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setContentView(Landroid/view/View;)V
.line 39
const/4 v0, -0x1
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setWidth(I)V
.line 40
const/4 v0, -0x2
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setHeight(I)V
.line 41
const/4 v0, 0x1
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setFocusable(Z)V
.line 42
const v0, 0x7f0900f4
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setAnimationStyle(I)V
.line 44
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
invoke-virtual {p1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0b0089
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
.line 46
invoke-virtual {p0, v0}, Lcom/viatech/gallery/SharePopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 61
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
const v1, 0x7f0c02c6
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
.line 62
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 63
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
const v1, 0x7f0c02c7
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
.line 64
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 65
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
const v1, 0x7f0c02c9
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
.line 66
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 67
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
const v1, 0x7f0c02ca
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
.line 68
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 69
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mShareView:Landroid/view/View;
const v1, 0x7f0c02c8
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
.line 70
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 71
sget-boolean v0, Lcom/viatech/a;->m:Z
if-nez v0, :cond_0
.line 72
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 74
:cond_0
sget-boolean v0, Lcom/viatech/a;->r:Z
if-nez v0, :cond_1
.line 75
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 78
:cond_1
return-void
.end method
# virtual methods
.method public showShareItem(IZ)V
.locals 4
.prologue
const/4 v3, 0x0
const/16 v2, 0x8
.line 81
and-int/lit8 v0, p1, 0x1f
const/16 v1, 0x1f
if-ne v0, v1, :cond_2
.line 82
if-eqz p2, :cond_8
.line 83
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 84
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 85
sget-boolean v0, Lcom/viatech/a;->m:Z
if-eqz v0, :cond_0
.line 86
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 88
:cond_0
sget-boolean v0, Lcom/viatech/a;->r:Z
if-eqz v0, :cond_1
.line 89
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 91
:cond_1
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 100
:cond_2
:goto_0
and-int/lit8 v0, p1, 0x1
const/4 v1, 0x1
if-ne v0, v1, :cond_3
.line 101
if-eqz p2, :cond_9
.line 102
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 107
:cond_3
:goto_1
and-int/lit8 v0, p1, 0x2
const/4 v1, 0x2
if-ne v0, v1, :cond_4
.line 108
if-eqz p2, :cond_a
.line 109
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 114
:cond_4
:goto_2
and-int/lit8 v0, p1, 0x4
const/4 v1, 0x4
if-ne v0, v1, :cond_5
.line 115
if-eqz p2, :cond_b
sget-boolean v0, Lcom/viatech/a;->r:Z
if-eqz v0, :cond_b
.line 116
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 121
:cond_5
:goto_3
and-int/lit8 v0, p1, 0x8
if-ne v0, v2, :cond_6
.line 122
if-eqz p2, :cond_c
.line 123
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 128
:cond_6
:goto_4
and-int/lit8 v0, p1, 0x10
const/16 v1, 0x10
if-ne v0, v1, :cond_7
.line 129
if-eqz p2, :cond_d
sget-boolean v0, Lcom/viatech/a;->m:Z
if-eqz v0, :cond_d
.line 130
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 136
:cond_7
:goto_5
return-void
.line 93
:cond_8
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 94
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 95
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 96
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 97
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 104
:cond_9
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_1
.line 111
:cond_a
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_2
.line 118
:cond_b
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_3
.line 125
:cond_c
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_4
.line 132
:cond_d
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_5
.end method
.method public showShareItem(Lcom/viatech/gallery/SharePopupWindow$ShareItem;Z)V
.locals 4
.prologue
const/16 v3, 0x8
const/4 v2, 0x0
.line 139
sget-object v0, Lcom/viatech/gallery/SharePopupWindow$1;->$SwitchMap$com$viatech$gallery$SharePopupWindow$ShareItem:[I
invoke-virtual {p1}, Lcom/viatech/gallery/SharePopupWindow$ShareItem;->ordinal()I
move-result v1
aget v0, v0, v1
packed-switch v0, :pswitch_data_0
.line 195
:goto_0
return-void
.line 141
:pswitch_0
if-eqz p2, :cond_2
.line 142
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 143
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 144
sget-boolean v0, Lcom/viatech/a;->m:Z
if-eqz v0, :cond_0
.line 145
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 147
:cond_0
sget-boolean v0, Lcom/viatech/a;->r:Z
if-eqz v0, :cond_1
.line 148
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 150
:cond_1
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 152
:cond_2
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 153
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 154
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 155
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
.line 156
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 160
:pswitch_1
if-eqz p2, :cond_3
.line 161
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 163
:cond_3
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mFacebookView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 167
:pswitch_2
if-eqz p2, :cond_4
.line 168
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 170
:cond_4
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mYouTubeView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 174
:pswitch_3
if-eqz p2, :cond_5
sget-boolean v0, Lcom/viatech/a;->r:Z
if-eqz v0, :cond_5
.line 175
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 177
:cond_5
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mVpaiCloudView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 181
:pswitch_4
if-eqz p2, :cond_6
.line 182
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 184
:cond_6
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mOthersView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
.line 188
:pswitch_5
if-eqz p2, :cond_7
sget-boolean v0, Lcom/viatech/a;->m:Z
if-eqz v0, :cond_7
.line 189
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
goto/16 :goto_0
.line 191
:cond_7
iget-object v0, p0, Lcom/viatech/gallery/SharePopupWindow;->mWeixinView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V
goto/16 :goto_0
.line 139
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_2
:pswitch_3
:pswitch_4
:pswitch_5
.end packed-switch
.end method