正在查看: Cantique de Louanges v12 应用的 ConsentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 ConsentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.startapp.sdk.adsbase.consent;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.RelativeLayout;
import com.startapp.sdk.adsbase.remoteconfig.MetaData;
import com.startapp.sdk.internal.dl;
import com.startapp.sdk.internal.gj;
import com.startapp.sdk.internal.kl;
import com.startapp.sdk.internal.o9;
import com.startapp.sdk.internal.p9;
import com.startapp.sdk.internal.s6;
import com.startapp.sdk.internal.t6;
import java.net.URI;
import java.util.WeakHashMap;
public class ConsentActivity extends Activity {
private WebView a;
private String b;
private boolean c;
@Override
public final void onBackPressed() {
WebView webView = this.a;
if (webView == null) {
this.c = true;
super.onBackPressed();
return;
}
String url = webView.getUrl();
String str = this.b;
if (str != null && url != null && url.contains(str)) {
this.a.loadUrl("javascript:startappBackPressed();");
} else if (this.a.canGoBack()) {
this.a.goBack();
} else {
this.c = true;
super.onBackPressed();
}
}
@Override
protected final void onCreate(Bundle bundle) {
super.onCreate(bundle);
requestWindowFeature(1);
RelativeLayout relativeLayout = new RelativeLayout(this);
ViewGroup.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
String dataString = getIntent().getDataString();
if (!TextUtils.isEmpty(dataString)) {
try {
URI uri = new URI(dataString);
this.b = new URI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null).toString();
WebView c = ((kl) ((dl) com.startapp.sdk.components.a.a(this).b.a())).c();
this.a = c;
c.setWebViewClient(new a(this));
this.a.getSettings().setJavaScriptEnabled(true);
this.a.setHorizontalScrollBarEnabled(false);
this.a.setVerticalScrollBarEnabled(false);
this.a.getSettings().setTextZoom(100);
this.a.loadUrl(dataString);
this.a.setBackgroundColor(0);
this.a.setLayerType(1, null);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-1, -1);
layoutParams2.addRule(13);
relativeLayout.addView(this.a, layoutParams2);
} catch (Throwable th) {
o9.a(th);
}
}
setContentView(relativeLayout, layoutParams);
}
@Override
protected final void onStop() {
super.onStop();
ConsentConfig q = MetaData.C().q();
if (!this.c && q != null && q.k()) {
WeakHashMap weakHashMap = gj.a;
if (((s6) com.startapp.sdk.components.a.a(this).t.a()).b() && gj.d(this)) {
o9 o9Var = new o9(p9.d);
o9Var.d = "ConsentActivityHasBeenCovered";
o9Var.a();
finish();
try {
startActivity(getIntent());
} catch (Throwable th) {
o9.a(th);
}
}
}
t6 t6Var = (t6) com.startapp.sdk.components.a.a(this).j.a();
t6Var.e = false;
if (t6.a(4)) {
o9 o9Var2 = new o9(p9.d);
o9Var2.d = "CNS.closed";
o9Var2.e = String.valueOf(System.currentTimeMillis());
o9Var2.a();
}
Intent intent = t6Var.d;
if (intent != null) {
try {
t6Var.a.startActivity(intent);
} catch (Throwable th2) {
if (t6.a(8)) {
o9.a(th2);
}
}
}
}
}