Files
rr3-apk/decompiled/sources/com/tapjoy/k1.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

42 lines
1.4 KiB
Java

package com.tapjoy;
import android.webkit.WebView;
import com.tapjoy.TapjoyErrorMessage;
/* loaded from: classes4.dex */
public final class k1 implements Runnable {
public final WebView a;
public String b;
public k1(WebView webView, String str) {
this.a = webView;
this.b = str;
}
@Override // java.lang.Runnable
public final void run() {
if (this.a != null) {
if (this.b.startsWith("javascript:")) {
try {
String replaceFirst = this.b.replaceFirst("javascript:", "");
this.b = replaceFirst;
WebView webView = this.a;
if (webView == null) {
return;
}
webView.evaluateJavascript(replaceFirst, null);
return;
} catch (Exception e) {
TapjoyLog.e("TJWebViewJSInterface", new TapjoyErrorMessage(TapjoyErrorMessage.ErrorType.INTERNAL_ERROR, "Exception in evaluateJavascript. Device not supported. " + e.toString()));
return;
}
}
try {
this.a.loadUrl(this.b);
} catch (Exception e2) {
TapjoyLog.e("TJWebViewJSInterface", new TapjoyErrorMessage(TapjoyErrorMessage.ErrorType.INTERNAL_ERROR, "Exception in loadUrl. Device not supported. " + e2.toString()));
}
}
}
}