- 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
52 lines
1.7 KiB
Java
52 lines
1.7 KiB
Java
package com.tapjoy;
|
|
|
|
import android.app.Activity;
|
|
import android.webkit.WebView;
|
|
import android.widget.RelativeLayout;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class w implements Runnable {
|
|
public final WebView a;
|
|
public final boolean b;
|
|
public final boolean c;
|
|
public final /* synthetic */ TJAdUnitJSBridge d;
|
|
|
|
public w(TJAdUnitJSBridge tJAdUnitJSBridge, WebView webView, boolean z, boolean z2) {
|
|
this.d = tJAdUnitJSBridge;
|
|
this.a = webView;
|
|
this.b = z;
|
|
this.c = z2;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (!(this.d.b.getContext() instanceof Activity)) {
|
|
TapjoyLog.e("TJAdUnitJSBridge", "Unable to present offerwall. No Activity context provided.");
|
|
return;
|
|
}
|
|
if (!this.b) {
|
|
this.a.setVisibility(4);
|
|
if (this.a.getParent() instanceof RelativeLayout) {
|
|
((RelativeLayout) this.a.getParent()).getBackground().setAlpha(0);
|
|
((RelativeLayout) this.a.getParent()).setBackgroundColor(0);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.a.setVisibility(0);
|
|
if (this.c) {
|
|
if (this.a.getParent() instanceof RelativeLayout) {
|
|
((RelativeLayout) this.a.getParent()).getBackground().setAlpha(0);
|
|
((RelativeLayout) this.a.getParent()).setBackgroundColor(0);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.a.getParent() instanceof RelativeLayout) {
|
|
((RelativeLayout) this.a.getParent()).getBackground().setAlpha(255);
|
|
((RelativeLayout) this.a.getParent()).setBackgroundColor(-1);
|
|
}
|
|
this.a.setLayerType(0, null);
|
|
}
|
|
}
|