- 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
72 lines
2.7 KiB
Java
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;
|
|
}
|
|
}
|