- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
111 lines
2.7 KiB
Java
111 lines
2.7 KiB
Java
package com.ironsource.mediationsdk;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import android.widget.FrameLayout;
|
|
import com.ironsource.m5;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.sdk.LevelPlayBannerListener;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class IronSourceBannerLayout extends FrameLayout {
|
|
private View a;
|
|
private ISBannerSize b;
|
|
private String c;
|
|
private Activity d;
|
|
private boolean e;
|
|
private boolean f;
|
|
private a g;
|
|
|
|
public interface a {
|
|
void onWindowFocusChanged(boolean z);
|
|
}
|
|
|
|
public IronSourceBannerLayout(Activity activity, ISBannerSize iSBannerSize) {
|
|
super(activity);
|
|
this.e = false;
|
|
this.f = false;
|
|
this.d = activity;
|
|
this.b = iSBannerSize == null ? ISBannerSize.BANNER : iSBannerSize;
|
|
}
|
|
|
|
public IronSourceBannerLayout(Context context) {
|
|
super(context);
|
|
this.e = false;
|
|
this.f = false;
|
|
}
|
|
|
|
public void a() {
|
|
this.e = true;
|
|
this.d = null;
|
|
this.b = null;
|
|
this.c = null;
|
|
this.a = null;
|
|
this.g = null;
|
|
removeBannerListener();
|
|
}
|
|
|
|
public IronSourceBannerLayout b() {
|
|
IronSourceBannerLayout ironSourceBannerLayout = new IronSourceBannerLayout(this.d, this.b);
|
|
ironSourceBannerLayout.setPlacementName(this.c);
|
|
return ironSourceBannerLayout;
|
|
}
|
|
|
|
public Activity getActivity() {
|
|
return this.d;
|
|
}
|
|
|
|
public LevelPlayBannerListener getLevelPlayBannerListener() {
|
|
return m5.a().b();
|
|
}
|
|
|
|
public String getPlacementName() {
|
|
return this.c;
|
|
}
|
|
|
|
public ISBannerSize getSize() {
|
|
return this.b;
|
|
}
|
|
|
|
public a getWindowFocusChangedListener() {
|
|
return this.g;
|
|
}
|
|
|
|
public boolean isDestroyed() {
|
|
return this.e;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void onWindowFocusChanged(boolean z) {
|
|
super.onWindowFocusChanged(z);
|
|
a aVar = this.g;
|
|
if (aVar != null) {
|
|
aVar.onWindowFocusChanged(z);
|
|
}
|
|
}
|
|
|
|
public void removeBannerListener() {
|
|
IronLog.API.info();
|
|
m5.a().a((LevelPlayBannerListener) null);
|
|
}
|
|
|
|
public void setBannerSize(ISBannerSize iSBannerSize) {
|
|
this.b = iSBannerSize;
|
|
}
|
|
|
|
@Deprecated
|
|
public void setLevelPlayBannerListener(LevelPlayBannerListener levelPlayBannerListener) {
|
|
IronLog.API.info();
|
|
m5.a().a(levelPlayBannerListener);
|
|
}
|
|
|
|
public void setPlacementName(String str) {
|
|
this.c = str;
|
|
}
|
|
|
|
public void setWindowFocusChangedListener(a aVar) {
|
|
this.g = aVar;
|
|
}
|
|
}
|