正在查看: CityMall v1.42.1 应用的 AdSterInterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 AdSterInterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.adster.sdk.mediation.adster;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.b;
import com.adster.sdk.R;
import kotlin.Metadata;
import kotlin.jvm.internal.j;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata
public final class AdSterInterstitialActivity extends b {
public View binding;
public static final void m10onCreate$lambda2$lambda1(AdSterInterstitialActivity adSterInterstitialActivity, View view) {
j.i(adSterInterstitialActivity, "this$0");
adSterInterstitialActivity.finish();
}
@NotNull
public final View getBinding() {
View view = this.binding;
if (view != null) {
return view;
}
j.A("binding");
return null;
}
@Override
public void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
View inflate = getLayoutInflater().inflate(R.layout.adster_interstitial_activity, (ViewGroup) null);
j.h(inflate, "layoutInflater.inflate(R…erstitial_activity, null)");
setBinding(inflate);
setContentView(getBinding());
ActionBar supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.k();
}
View binding = getBinding();
AdsterInterstitialAdView interstitialAdView = AdSterInterstitialAd.Companion.getInterstitialAdView();
if (interstitialAdView != null) {
ViewParent parent = interstitialAdView.getParent();
ViewGroup viewGroup = parent instanceof ViewGroup ? (ViewGroup) parent : null;
if (viewGroup != null) {
viewGroup.removeView(interstitialAdView);
}
((LinearLayout) binding.findViewById(R.id.adLayout)).addView(interstitialAdView);
}
((ImageView) binding.findViewById(R.id.icClose)).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AdSterInterstitialActivity.m10onCreate$lambda2$lambda1(AdSterInterstitialActivity.this, view);
}
});
}
public final void setBinding(@NotNull View view) {
j.i(view, "<set-?>");
this.binding = view;
}
}