正在查看: CashVia v1.6.02 应用的 XYStartUpActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CashVia v1.6.02 应用的 XYStartUpActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xy.credyclub.view;
import B2.e;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.TypedArray;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import androidx.constraintlayout.helper.widget.a;
import androidx.lifecycle.ViewModelLazy;
import com.sensorsdata.analytics.android.sdk.data.SAProviderHelper;
import com.tencent.mmkv.MMKV;
import com.xy.credyclub.service.LocationService;
import com.xy.credyclub.vm.HomeViewModel;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import q2.AbstractC0257d;
import q2.AbstractC0259f;
import u2.j;
import v2.C0300o;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/xy/credyclub/view/XYStartUpActivity;", "Lcom/xy/credyclub/base/XYBaseActivity;", "<init>", "()V", "app_prodRelease"}, k = 1, mv = {1, SAProviderHelper.URI_CODE.FLUSH_DATA, 0})
@SourceDebugExtension({"SMAP\nXYStartUpActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 XYStartUpActivity.kt\ncom/xy/credyclub/view/XYStartUpActivity\n+ 2 ActivityViewModelLazy.kt\nandroidx/activity/ActivityViewModelLazyKt\n*L\n1#1,127:1\n75#2,13:128\n*S KotlinDebug\n*F\n+ 1 XYStartUpActivity.kt\ncom/xy/credyclub/view/XYStartUpActivity\n*L\n27#1:128,13\n*E\n"})
public final class XYStartUpActivity extends Hilt_XYStartUpActivity {
public static final int v = 0;
public Handler i;
public final ViewModelLazy t = new ViewModelLazy(Reflection.getOrCreateKotlinClass(HomeViewModel.class), new e(this, 18), new C0300o(this), new e(this, 19));
public final a u = new a(this, 9);
@Override
public final void onCreate(Bundle bundle) {
if (Build.VERSION.SDK_INT == 26 && r()) {
try {
Field declaredField = Activity.class.getDeclaredField("mActivityInfo");
declaredField.setAccessible(true);
Object obj = declaredField.get(this);
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type android.content.pm.ActivityInfo");
((ActivityInfo) obj).screenOrientation = -1;
declaredField.setAccessible(false);
} catch (Exception e) {
e.printStackTrace();
}
}
super.onCreate(bundle);
setContentView(2131492905);
MMKV mmkv = AbstractC0257d.a;
mmkv.putString("sign", "NzQyMzE5MzY1NzQyMzE5MzY1NzQyMzE5MzY1");
mmkv.remove("lbs");
mmkv.remove("il");
Intrinsics.checkNotNullParameter(this, "context");
if (j.a) {
startService(new Intent((Context) this, (Class<?>) LocationService.class));
}
Handler handler = new Handler(Looper.getMainLooper());
this.i = handler;
handler.postDelayed(this.u, 1500L);
String b = AbstractC0259f.b();
if (b == null || b.length() == 0) {
return;
}
ViewModelLazy viewModelLazy = this.t;
HomeViewModel.c((HomeViewModel) viewModelLazy.getValue(), false, false, false, 6);
((HomeViewModel) viewModelLazy.getValue()).d();
((HomeViewModel) viewModelLazy.getValue()).a();
}
public final void onDestroy() {
super.onDestroy();
Handler handler = this.i;
if (handler != null) {
handler.removeCallbacks(this.u);
}
this.i = null;
}
public final boolean r() {
Exception e;
boolean z;
Method method;
try {
Object obj = Class.forName("com.android.internal.R$styleable").getField("Window").get(null);
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.IntArray");
TypedArray obtainStyledAttributes = obtainStyledAttributes((int[]) obj);
Intrinsics.checkNotNullExpressionValue(obtainStyledAttributes, "obtainStyledAttributes(...)");
method = ActivityInfo.class.getMethod("isTranslucentOrFloating", TypedArray.class);
method.setAccessible(true);
Object invoke = method.invoke(null, obtainStyledAttributes);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Boolean");
z = ((Boolean) invoke).booleanValue();
} catch (Exception e4) {
e = e4;
z = false;
}
try {
method.setAccessible(false);
} catch (Exception e5) {
e = e5;
e.printStackTrace();
return z;
}
return z;
}
public final void setRequestedOrientation(int i) {
if (Build.VERSION.SDK_INT == 26 && r()) {
return;
}
super/*android.app.Activity*/.setRequestedOrientation(i);
}
}