Files
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

72 lines
2.7 KiB
Java

package com.fyber.inneractive.sdk.web;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public final class a0 implements View.OnTouchListener {
public final a a;
public float b;
public float c;
public final float d;
public interface a {
}
public a0(a aVar, Context context) {
this.a = aVar;
this.d = ViewConfiguration.get(context).getScaledTouchSlop();
}
@Override // android.view.View.OnTouchListener
@SuppressLint({"ClickableViewAccessibility"})
public final boolean onTouch(View view, MotionEvent motionEvent) {
if (this.a != null) {
if (motionEvent.getActionMasked() == 0) {
((f) this.a).j();
this.b = motionEvent.getX();
this.c = motionEvent.getY();
} else if (motionEvent.getActionMasked() == 3) {
((f) this.a).j();
this.c = -1.0f;
this.b = -1.0f;
} else if (motionEvent.getActionMasked() == 1) {
float f = this.b;
if (f >= 0.0f && this.c >= 0.0f) {
float round = Math.round(Math.abs(f - motionEvent.getX()));
float round2 = Math.round(Math.abs(this.c - motionEvent.getY()));
float f2 = this.d;
if (round < f2 && round2 < f2) {
f fVar = (f) this.a;
fVar.getClass();
IAlog.a("IAWebViewController onClicked()", new Object[0]);
if (fVar.l != null) {
IAlog.e("Native click detected in time. Processing pending click", new Object[0]);
fVar.l.c();
d dVar = fVar.m;
if (dVar != null) {
com.fyber.inneractive.sdk.util.p.b.removeCallbacks(dVar);
}
fVar.l = null;
fVar.j();
} else {
if (fVar.n != null) {
com.fyber.inneractive.sdk.util.p.b.postDelayed(fVar.n, IAConfigManager.L.t.b.a(1000, 1000, "click_timeout"));
}
fVar.j = true;
}
}
this.b = -1.0f;
this.c = -1.0f;
}
}
}
return false;
}
}