得物.apk(点击下载) / CloseAccountWebPageActivity.java
package com.shizhuang.duapp.modules.financialstagesdk.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.CookieManager;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.base.core.BaseCoreActivity;
import com.shizhuang.duapp.modules.financialstagesdk.api.config.BizIdentity;
import fc0.n0;
import fc0.o0;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
import vb0.d;
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/financialstagesdk/ui/activity/CloseAccountWebPageActivity;", "Lcom/shizhuang/duapp/common/base/core/BaseCoreActivity;", "<init>", "()V", "com.shizhuang.duapp.libs.du_financial_stage_sdk"}, k = 1, mv = {1, 4, 2})
/* compiled from: CloseAccountWebPageActivity.kt */
public final class CloseAccountWebPageActivity extends BaseCoreActivity {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: h reason: collision with root package name */
public ActivityResultLauncher<Intent> f15306h;
public HashMap i;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void ActivityMethodWeaver_onCreate(@Nullable CloseAccountWebPageActivity closeAccountWebPageActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{closeAccountWebPageActivity, bundle}, null, changeQuickRedirect, true, 149311, new Class[]{CloseAccountWebPageActivity.class, Bundle.class}, Void.TYPE).isSupported) {
b bVar = b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
CloseAccountWebPageActivity.g(closeAccountWebPageActivity, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (closeAccountWebPageActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.financialstagesdk.ui.activity.CloseAccountWebPageActivity")) {
bVar.activityOnCreateMethod(closeAccountWebPageActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(CloseAccountWebPageActivity closeAccountWebPageActivity) {
if (!PatchProxy.proxy(new Object[]{closeAccountWebPageActivity}, null, changeQuickRedirect, true, 149310, new Class[]{CloseAccountWebPageActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
CloseAccountWebPageActivity.f(closeAccountWebPageActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (closeAccountWebPageActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.financialstagesdk.ui.activity.CloseAccountWebPageActivity")) {
b.f34396a.activityOnResumeMethod(closeAccountWebPageActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(CloseAccountWebPageActivity closeAccountWebPageActivity) {
if (!PatchProxy.proxy(new Object[]{closeAccountWebPageActivity}, null, changeQuickRedirect, true, 149312, new Class[]{CloseAccountWebPageActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
CloseAccountWebPageActivity.h(closeAccountWebPageActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (closeAccountWebPageActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.financialstagesdk.ui.activity.CloseAccountWebPageActivity")) {
b.f34396a.activityOnStartMethod(closeAccountWebPageActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
}
public static void f(CloseAccountWebPageActivity closeAccountWebPageActivity) {
if (!PatchProxy.proxy(new Object[0], closeAccountWebPageActivity, changeQuickRedirect, false, 149301, new Class[0], Void.TYPE).isSupported) {
super.onResume();
if (d.f39233c.c().b() == BizIdentity.DE_WU) {
WebView webView = (WebView) closeAccountWebPageActivity._$_findCachedViewById(R.id.webView);
if (webView != null) {
webView.onResume();
}
WebView webView2 = (WebView) closeAccountWebPageActivity._$_findCachedViewById(R.id.webView);
if (webView2 != null) {
webView2.resumeTimers();
}
}
}
}
public static void g(CloseAccountWebPageActivity closeAccountWebPageActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, closeAccountWebPageActivity, changeQuickRedirect, false, 149307, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void h(CloseAccountWebPageActivity closeAccountWebPageActivity) {
if (!PatchProxy.proxy(new Object[0], closeAccountWebPageActivity, changeQuickRedirect, false, 149309, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 149304, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.i == null) {
this.i = new HashMap();
}
View view = (View) this.i.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View findViewById = findViewById(i3);
this.i.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149294, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_fs_close_account_web_page;
}
@Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void initData() {
boolean z = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149296, new Class[0], Void.TYPE).isSupported;
}
@Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void initView(@org.jetbrains.annotations.Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 149297, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149295, new Class[0], Void.TYPE).isSupported) {
this.f15306h = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new CloseAccountWebPageActivity$registerActivityResult$1(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149298, new Class[0], Void.TYPE).isSupported) {
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setDomStorageEnabled(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setMixedContentMode(0);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setJavaScriptEnabled(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setAppCacheEnabled(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setLoadWithOverviewMode(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setDefaultTextEncodingName("UTF-8");
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setSupportMultipleWindows(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setMediaPlaybackRequiresUserGesture(false);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setSupportZoom(false);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setBuiltInZoomControls(false);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setAllowFileAccess(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setUseWideViewPort(true);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setCacheMode(-1);
((WebView) _$_findCachedViewById(R.id.webView)).getSettings().setLoadsImagesAutomatically(true);
CookieManager.getInstance().setAcceptThirdPartyCookies((WebView) _$_findCachedViewById(R.id.webView), true);
((WebView) _$_findCachedViewById(R.id.webView)).setWebViewClient(new n0());
((WebView) _$_findCachedViewById(R.id.webView)).setWebChromeClient(new o0());
}
WebView webView = (WebView) _$_findCachedViewById(R.id.webView);
webView.loadUrl("https://fast.dewu.com/nezha-plus/detail/6049ad4538b7600bc75f35cb");
SensorsDataAutoTrackHelper.loadUrl2(webView, "https://fast.dewu.com/nezha-plus/detail/6049ad4538b7600bc75f35cb");
((TextView) _$_findCachedViewById(R.id.tv_submit)).setOnClickListener(new CloseAccountWebPageActivity$initView$1(this));
}
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 149306, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void onPause() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149302, new Class[0], Void.TYPE).isSupported) {
super.onPause();
if (d.f39233c.c().b() == BizIdentity.DE_WU) {
WebView webView = (WebView) _$_findCachedViewById(R.id.webView);
if (webView != null) {
webView.onPause();
}
WebView webView2 = (WebView) _$_findCachedViewById(R.id.webView);
if (webView2 != null) {
webView2.pauseTimers();
}
}
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149300, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.base.core.BaseCoreActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149308, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
}