Files
rr3-apk/decompiled/sources/com/tapjoy/w.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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);
}
}