正在查看: 新暖心缘 v8.1.1 应用的 SplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 SplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.luanxingyuan.app.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import com.fm.openinstall.OpenInstall;
import com.fm.openinstall.listener.AppInstallListener;
import com.fm.openinstall.listener.AppWakeUpAdapter;
import com.fm.openinstall.model.AppData;
import com.fm.openinstall.model.Error;
import com.luanxingyuan.app.base.AppManager;
import com.luanxingyuan.app.bean.ChatUserInfo;
import com.luanxingyuan.app.util.IpUtils;
import com.tencent.qcloud.tim.uikit.R;
import java.util.List;
import o6.n;
public class SplashActivity extends Activity {
public static List<com.luanxingyuan.app.bean.a> f7084c;
private ChatUserInfo f7085a;
AppWakeUpAdapter f7086b = new a();
static class UrlResponse extends com.luanxingyuan.app.base.c {
public String request_socket;
public int request_status;
public String request_url;
UrlResponse() {
}
}
class a extends AppWakeUpAdapter {
a() {
}
@Override
public void onWakeUp(AppData appData) {
String B;
StringBuilder sb = new StringBuilder();
sb.append("getInstall : installData = ");
sb.append(appData.toString());
appData.getChannel();
String data = appData.getData();
if (!TextUtils.isEmpty(data)) {
try {
B = w0.a.p(data).B("userId");
} catch (Exception unused) {
}
AppManager.f().t(B);
}
B = "";
AppManager.f().t(B);
}
}
class b implements Runnable {
b() {
}
@Override
public void run() {
IpUtils.getOutNetIP();
IpUtils.GetNetIp();
IpUtils.GetNetIp3();
}
}
class c implements Runnable {
c() {
}
@Override
public void run() {
if (SplashActivity.this.isFinishing()) {
return;
}
SplashActivity.this.b();
}
}
class d implements AppInstallListener {
d() {
}
@Override
public void onInstallFinish(AppData appData, Error error) {
String B;
if (error == null || !error.shouldRetry()) {
if (appData == null) {
appData = new AppData();
}
appData.getChannel();
String data = appData.getData();
if (!TextUtils.isEmpty(data)) {
try {
B = w0.a.p(data).B("userId");
} catch (Exception unused) {
}
AppManager.f().t(B);
}
B = "";
AppManager.f().t(B);
}
}
}
public void b() {
ChatUserInfo chatUserInfo = this.f7085a;
boolean z7 = true;
if (chatUserInfo.t_id > 0) {
if (chatUserInfo.t_sex == 2) {
startActivity(new Intent(getApplicationContext(), (Class<?>) ChooseGenderActivity.class));
} else {
startActivity(new Intent(getApplicationContext(), (Class<?>) MainActivity.class));
}
} else if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("agree", true)) {
startActivity(new Intent(getApplicationContext(), (Class<?>) ScrollLoginActivity.class));
} else {
z7 = false;
if (isFinishing()) {
return;
} else {
new com.luanxingyuan.app.dialog.b(this).show();
}
}
if (z7) {
finish();
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (AppManager.f().d().b()) {
finish();
return;
}
f7084c = n.h();
new Thread(new b()).start();
this.f7085a = n.a(AppManager.f());
f6.e.C(this).x(true).o(R.color.black).g();
setContentView(2131492967);
new Handler().postDelayed(new c(), 3000L);
if (this.f7085a.t_id > 0) {
o6.g.m();
AppManager.f().q();
}
OpenInstall.init(this);
OpenInstall.getWakeUp(getIntent(), this.f7086b);
OpenInstall.getInstall(new d());
}
@Override
protected void onDestroy() {
super.onDestroy();
this.f7086b = null;
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
OpenInstall.getWakeUp(intent, this.f7086b);
}
@Override
protected void onStart() {
super.onStart();
o6.l.f();
}
}