- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
74 lines
2.3 KiB
Java
74 lines
2.3 KiB
Java
package com.tapjoy;
|
|
|
|
import android.content.Context;
|
|
import android.util.DisplayMetrics;
|
|
import android.webkit.WebView;
|
|
import com.tapjoy.TJAdUnitConstants;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class p0 extends TJJSBridgeDelegate {
|
|
public final /* synthetic */ TJOfferwallDiscoverView a;
|
|
|
|
public p0(TJOfferwallDiscoverView tJOfferwallDiscoverView) {
|
|
this.a = tJOfferwallDiscoverView;
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final boolean fireContentError(TJError tJError) {
|
|
super.fireContentError(tJError);
|
|
if (this.a.c == null) {
|
|
return true;
|
|
}
|
|
TapjoyUtil.runOnMainThread(new m0(this, tJError));
|
|
return true;
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final boolean fireContentReady() {
|
|
super.fireContentReady();
|
|
if (this.a.c == null) {
|
|
return true;
|
|
}
|
|
TapjoyUtil.runOnMainThread(new l0(this));
|
|
return true;
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final Context getContext() {
|
|
return this.a.a.getContext();
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final Object getData(String str, Class cls) {
|
|
return str.equalsIgnoreCase(TJAdUnitConstants.String.HTML) ? this.a.d.c : super.getData(str, cls);
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final Map getOrientation() {
|
|
DisplayMetrics displayMetrics = this.a.getResources().getDisplayMetrics();
|
|
String str = displayMetrics.widthPixels > displayMetrics.heightPixels ? "landscape" : "portrait";
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("orientation", str);
|
|
hashMap.put("width", Integer.valueOf(this.a.getWidth()));
|
|
hashMap.put("height", Integer.valueOf(this.a.getHeight()));
|
|
return hashMap;
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final void getTextZoom(TJTaskHandler tJTaskHandler) {
|
|
TapjoyUtil.runOnMainThread(new n0(this, tJTaskHandler));
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final WebView getWebView() {
|
|
return this.a.a;
|
|
}
|
|
|
|
@Override // com.tapjoy.TJJSBridgeDelegate
|
|
public final void setTextZoom(float f) {
|
|
TapjoyUtil.runOnMainThread(new o0(this, f));
|
|
}
|
|
}
|