CommonWebPageFragment.smali
.class public Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;
.super Lcom/imo/android/imoim/fragments/IMOFragment;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/f;
# instance fields
.field private a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.field private b:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
.field protected c:Landroid/view/ViewGroup;
.field protected d:Ljava/lang/String;
.field protected e:Ljava/lang/String;
.field protected f:Landroid/os/Handler;
.field private g:I
# direct methods
.method public constructor <init>()V
.registers 3
.line 46
invoke-direct {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;-><init>()V
const/4 v0, 0x0
.line 56
iput-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->d:Ljava/lang/String;
.line 57
iput-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->e:Ljava/lang/String;
.line 58
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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->f:Landroid/os/Handler;
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.registers 2
.line 216
invoke-static {p1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/d;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public b()V
.registers 2
.line 170
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_d
.line 171
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/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 c()V
.registers 2
.line 163
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_d
.line 164
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->b: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, 0x7f0b0501
invoke-direct {v0, v1, v2}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;-><init>(II)V
iput-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->b:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/c;
.line 223
iget v1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->b: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 194
new-instance v0, Lcom/imo/android/imoim/webview/a/a/b;
new-instance v1, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment$1;
invoke-direct {v1, p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment$1;-><init>(Lcom/imo/android/imoim/revenuesdk/module/credit/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}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_12
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/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 46
invoke-super {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
return-object v0
.end method
.method public final k()Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.registers 4
.line 127
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-nez v0, :cond_19
.line 128
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->getContext()Landroid/content/Context;
move-result-object v0
iget-object v1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->d:Ljava/lang/String;
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->e()[F
move-result-object v2
invoke-static {v0, v1, p0, v2}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/i;->a(Landroid/content/Context;Ljava/lang/String;Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/f;[F)Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/i;
move-result-object v0
iput-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
.line 129
iget-object v1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->e:Ljava/lang/String;
invoke-interface {v0, v1}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->b(Ljava/lang/String;)V
.line 131
:cond_19
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
return-object v0
.end method
.method public final l()V
.registers 2
const/4 v0, 0x0
.line 135
iput-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
return-void
.end method
.method public final m()V
.registers 2
.line 176
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-eqz v0, :cond_7
.line 177
invoke-interface {v0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;->f()Z
:cond_7
return-void
.end method
.method public onActivityCreated(Landroid/os/Bundle;)V
.registers 2
.line 101
invoke-super {p0, p1}, Lcom/imo/android/imoim/fragments/IMOFragment;->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}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->k()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}, Lcom/imo/android/imoim/revenuesdk/module/credit/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}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->k()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 66
invoke-super {p0, p1}, Lcom/imo/android/imoim/fragments/IMOFragment;->onCreate(Landroid/os/Bundle;)V
.line 67
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_32
const-string v0, "url"
.line 1072
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->d:Ljava/lang/String;
.line 1073
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result p1
if-nez p1, :cond_32
.line 1074
iget-object p1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->d: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 1076
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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->g:I
const-string v0, "title"
.line 1077
invoke-virtual {p1, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->e: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, 0x7f0b0499
const/4 v0, 0x0
.line 87
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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->c:Landroid/view/ViewGroup;
.line 88
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->k()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, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->c:Landroid/view/ViewGroup;
return-object p1
.end method
.method public onDestroyView()V
.registers 3
.line 114
invoke-super {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;->onDestroyView()V
.line 115
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a: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
.line 118
:cond_a
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->f:Landroid/os/Handler;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
return-void
.end method
.method public onDetach()V
.registers 3
const-string v0, "LiveRevenue"
const-string v1, "[WebPageFragment]onDetach"
.line 149
invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 150
invoke-super {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;->onDetach()V
.line 151
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 151
invoke-interface {v0}, Lsg/bigo/web/e/d;->a()V
return-void
.end method
.method public onPause()V
.registers 2
.line 157
invoke-super {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;->onPause()V
.line 158
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->k()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 141
invoke-super {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;->onResume()V
.line 142
iget-object v0, p0, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->a:Lcom/imo/android/imoim/revenuesdk/module/credit/web/a/d;
if-eqz v0, :cond_a
.line 143
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}, Lcom/imo/android/imoim/fragments/IMOFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 96
invoke-virtual {p0}, Lcom/imo/android/imoim/revenuesdk/module/credit/web/CommonWebPageFragment;->k()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