正在查看: Bedrock Radio v1.1.1 应用的 RNBootSplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Bedrock Radio v1.1.1 应用的 RNBootSplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.zoontek.rnbootsplash;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class RNBootSplashActivity extends AppCompatActivity {
static final boolean $assertionsDisabled = false;
protected Class<?> getMainActivityClass() throws Exception {
return Class.forName(getApplicationContext().getClass().getPackage().getName() + ".MainActivity");
}
protected void forwardIntentToMainActivity(Intent intent) {
try {
Intent intent2 = new Intent(intent);
intent2.setClass(this, getMainActivityClass());
intent2.putExtras(intent);
intent2.setData(intent.getData());
intent2.setAction(intent.getAction());
String type = intent.getType();
if (type != null) {
intent2.setType(type);
}
startActivity(intent2);
finish();
} catch (Exception e) {
e.printStackTrace();
finishAffinity();
}
}
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
forwardIntentToMainActivity(intent);
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
forwardIntentToMainActivity(getIntent());
}
}