CommonWebPageFragment.smali
.class public Lsg/bigo/live/support64/web/CommonWebPageFragment;
.super Lsg/bigo/live/support64/LiveBaseFragment;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/f;
# instance fields
.field protected a:Landroid/view/ViewGroup;
.field protected b:Ljava/lang/String;
.field protected c:Ljava/lang/String;
.field protected d:Landroid/os/Handler;
.field public e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.field private f:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
.field private g:I
# direct methods
.method public constructor <init>()V
.registers 3
.line 47
invoke-direct {p0}, Lsg/bigo/live/support64/LiveBaseFragment;-><init>()V
const/4 v0, 0x0
.line 57
iput-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->b:Ljava/lang/String;
.line 58
iput-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->c:Ljava/lang/String;
.line 59
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->d:Landroid/os/Handler;
return-void
.end method
# virtual methods
.method public final a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.registers 4
.line 126
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-nez v0, :cond_19
.line 127
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getContext()Landroid/content/Context;
move-result-object v0
iget-object v1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->b:Ljava/lang/String;
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e()[F
move-result-object v2
invoke-static {v0, v1, p0, v2}, Lsg/bigo/live/support64/web/b/a;->a(Landroid/content/Context;Ljava/lang/String;Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/f;[F)Lsg/bigo/live/support64/web/b/a;
move-result-object v0
iput-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.line 128
iget-object v1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->c:Ljava/lang/String;
invoke-interface {v0, v1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->b(Ljava/lang/String;)V
.line 130
:cond_19
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
return-object v0
.end method
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.registers 2
.line 216
invoke-static {p1}, Lsg/bigo/live/support64/web/b;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public b()V
.registers 2
.line 165
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_d
.line 166
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->onBackPressed()V
:cond_d
return-void
.end method
.method public c()V
.registers 2
.line 158
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_d
.line 159
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->finish()V
:cond_d
return-void
.end method
.method public d()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/g;
.registers 4
.line 221
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->f:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
if-nez v0, :cond_1a
.line 222
new-instance v0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
const/4 v1, 0x2
const v2, 0x7d0a0012
invoke-direct {v0, v1, v2}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;-><init>(II)V
iput-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->f:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
.line 223
iget v1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->g:I
const/4 v2, 0x1
if-ne v1, v2, :cond_18
const/4 v1, 0x0
.line 2040
iput v1, v0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;->a:I
goto :goto_1a
.line 3040
:cond_18
iput v2, v0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;->a:I
.line 229
:cond_1a
:goto_1a
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->f:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
return-object v0
.end method
.method protected e()[F
.registers 2
const/4 v0, 0x0
return-object v0
.end method
.method public final f()Lcom/imo/android/imoim/webview/a/a/b;
.registers 3
.line 189
new-instance v0, Lcom/imo/android/imoim/webview/a/a/b;
new-instance v1, Lsg/bigo/live/support64/web/CommonWebPageFragment$1;
invoke-direct {v1, p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment$1;-><init>(Lsg/bigo/live/support64/web/CommonWebPageFragment;)V
invoke-direct {v0, v1}, Lcom/imo/android/imoim/webview/a/a/b;-><init>(Lcom/imo/android/imoim/webview/a/b/d;)V
return-object v0
.end method
.method public final g()Z
.registers 2
.line 234
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_12
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->isFinishing()Z
move-result v0
if-nez v0, :cond_12
const/4 v0, 0x1
return v0
:cond_12
const/4 v0, 0x0
return v0
.end method
.method public final h()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lsg/bigo/web/jsbridge/core/g;",
">;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public final i()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public final synthetic j()Landroid/app/Activity;
.registers 2
.line 47
invoke-super {p0}, Lsg/bigo/live/support64/LiveBaseFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
return-object v0
.end method
.method public onActivityCreated(Landroid/os/Bundle;)V
.registers 2
.line 101
invoke-super {p0, p1}, Lsg/bigo/live/support64/LiveBaseFragment;->onActivityCreated(Landroid/os/Bundle;)V
.line 102
invoke-static {}, Lsg/bigo/common/p;->b()Z
move-result p1
if-nez p1, :cond_11
.line 103
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
move-result-object p1
invoke-interface {p1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->k()V
return-void
.line 106
:cond_11
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object p1
if-nez p1, :cond_18
return-void
.line 109
:cond_18
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
move-result-object p1
invoke-interface {p1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->a()V
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.registers 4
.line 67
invoke-super {p0, p1}, Lsg/bigo/live/support64/LiveBaseFragment;->onCreate(Landroid/os/Bundle;)V
.line 68
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_32
const-string v0, "url"
.line 1073
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->b:Ljava/lang/String;
.line 1074
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result p1
if-nez p1, :cond_32
.line 1075
iget-object p1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->b:Ljava/lang/String;
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object p1
:try_start_1d
const-string v0, "noTitleBar"
.line 1077
invoke-virtual {p1, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, v1}, Lsg/bigo/common/q;->a(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->g:I
const-string v0, "title"
.line 1078
invoke-virtual {p1, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->c:Ljava/lang/String;
:try_end_32
.catch Ljava/lang/Exception; {:try_start_1d .. :try_end_32} :catch_32
:catch_32
:cond_32
return-void
.end method
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.registers 5
const p3, 0x7d0a000e
const/4 v0, 0x0
.line 88
invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/view/ViewGroup;
iput-object p1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a:Landroid/view/ViewGroup;
.line 89
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
move-result-object p3
invoke-interface {p3, p2}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->a(Landroid/view/ViewGroup;)Landroid/view/View;
move-result-object p2
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
.line 90
iget-object p1, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a:Landroid/view/ViewGroup;
return-object p1
.end method
.method public onDestroyView()V
.registers 2
.line 114
invoke-super {p0}, Lsg/bigo/live/support64/LiveBaseFragment;->onDestroyView()V
.line 115
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-eqz v0, :cond_a
.line 116
invoke-interface {v0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->d()V
:cond_a
return-void
.end method
.method public onDetach()V
.registers 3
const-string v0, "Revenue_Web"
const-string v1, "[WebPageFragment]onDetach"
.line 144
invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 145
invoke-super {p0}, Lsg/bigo/live/support64/LiveBaseFragment;->onDetach()V
.line 146
invoke-static {}, Lsg/bigo/web/e/f;->a()Lsg/bigo/web/e/f;
move-result-object v0
.line 2039
iget-object v0, v0, Lsg/bigo/web/e/f;->a:Lsg/bigo/web/e/g;
.line 146
invoke-interface {v0}, Lsg/bigo/web/e/d;->a()V
return-void
.end method
.method public onPause()V
.registers 2
.line 152
invoke-super {p0}, Lsg/bigo/live/support64/LiveBaseFragment;->onPause()V
.line 153
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
move-result-object v0
invoke-interface {v0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->b()V
return-void
.end method
.method public onResume()V
.registers 2
.line 136
invoke-super {p0}, Lsg/bigo/live/support64/LiveBaseFragment;->onResume()V
.line 137
iget-object v0, p0, Lsg/bigo/live/support64/web/CommonWebPageFragment;->e:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-eqz v0, :cond_a
.line 138
invoke-interface {v0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->c()V
:cond_a
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.registers 3
.line 95
invoke-super {p0, p1, p2}, Lsg/bigo/live/support64/LiveBaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 96
invoke-virtual {p0}, Lsg/bigo/live/support64/web/CommonWebPageFragment;->a()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
move-result-object p2
invoke-interface {p2, p1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->a(Landroid/view/View;)Z
return-void
.end method