得物.apk(点击下载) / NewPrivacyDialogActivity.java
package com.shizhuang.duapp.modules.home.dialog;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;
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.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.ui.BaseActivity;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
@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/home/dialog/NewPrivacyDialogActivity;", "Lcom/shizhuang/duapp/common/ui/BaseActivity;", "<init>", "()V", "du_home_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: NewPrivacyDialogActivity.kt */
public final class NewPrivacyDialogActivity extends BaseActivity {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: c reason: collision with root package name */
public HashMap f15777c;
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 NewPrivacyDialogActivity newPrivacyDialogActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{newPrivacyDialogActivity, bundle}, null, changeQuickRedirect, true, 154871, new Class[]{NewPrivacyDialogActivity.class, Bundle.class}, Void.TYPE).isSupported) {
b bVar = b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
NewPrivacyDialogActivity.d(newPrivacyDialogActivity, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (newPrivacyDialogActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.NewPrivacyDialogActivity")) {
bVar.activityOnCreateMethod(newPrivacyDialogActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(NewPrivacyDialogActivity newPrivacyDialogActivity) {
if (!PatchProxy.proxy(new Object[]{newPrivacyDialogActivity}, null, changeQuickRedirect, true, 154873, new Class[]{NewPrivacyDialogActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
NewPrivacyDialogActivity.f(newPrivacyDialogActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (newPrivacyDialogActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.NewPrivacyDialogActivity")) {
b.f34396a.activityOnResumeMethod(newPrivacyDialogActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(NewPrivacyDialogActivity newPrivacyDialogActivity) {
if (!PatchProxy.proxy(new Object[]{newPrivacyDialogActivity}, null, changeQuickRedirect, true, 154872, new Class[]{NewPrivacyDialogActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
NewPrivacyDialogActivity.e(newPrivacyDialogActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (newPrivacyDialogActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.NewPrivacyDialogActivity")) {
b.f34396a.activityOnStartMethod(newPrivacyDialogActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
}
public static void d(NewPrivacyDialogActivity newPrivacyDialogActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, newPrivacyDialogActivity, changeQuickRedirect, false, 154866, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void e(NewPrivacyDialogActivity newPrivacyDialogActivity) {
if (!PatchProxy.proxy(new Object[0], newPrivacyDialogActivity, changeQuickRedirect, false, 154868, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static void f(NewPrivacyDialogActivity newPrivacyDialogActivity) {
if (!PatchProxy.proxy(new Object[0], newPrivacyDialogActivity, changeQuickRedirect, false, 154870, new Class[0], Void.TYPE).isSupported) {
super.onResume();
}
}
public View _$_findCachedViewById(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 154863, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.f15777c == null) {
this.f15777c = new HashMap();
}
View view = (View) this.f15777c.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View findViewById = findViewById(i);
this.f15777c.put(Integer.valueOf(i), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154859, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_new_privacy;
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initData() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154860, new Class[0], Void.TYPE).isSupported) {
WebView webView = (WebView) _$_findCachedViewById(R.id.webView);
webView.loadUrl("https://fast.dewu.com/nezha-plus/detail/61bc65dd87efcd37a23a6a31?duWebviewBg=%23ffffff");
SensorsDataAutoTrackHelper.loadUrl2(webView, "https://fast.dewu.com/nezha-plus/detail/61bc65dd87efcd37a23a6a31?duWebviewBg=%23ffffff");
ViewExtensionKt.h((TextView) _$_findCachedViewById(R.id.tvLeftBtn), new NewPrivacyDialogActivity$initData$1(this));
ViewExtensionKt.h((TextView) _$_findCachedViewById(R.id.tvRightBtn), new NewPrivacyDialogActivity$initData$2(this));
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initView(@org.jetbrains.annotations.Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 154861, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
getWindow().getAttributes().height = fi.b.b((float) 366);
getWindow().getAttributes().width = fi.b.b((float) 270);
getWindow().getAttributes().gravity = 17;
getWindow().getAttributes().dimAmount = 0.5f;
getWindow().addFlags(2);
}
}
@Override // androidx.activity.ComponentActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onBackPressed() {
boolean z = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154862, new Class[0], Void.TYPE).isSupported;
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 154865, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154869, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154867, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
}