- 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
52 lines
1.5 KiB
Java
52 lines
1.5 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.content.Context;
|
|
import android.view.MotionEvent;
|
|
import android.webkit.WebView;
|
|
import androidx.annotation.Nullable;
|
|
import com.applovin.impl.adview.AppLovinWebViewBase;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class j3 extends AppLovinWebViewBase {
|
|
private static Boolean b;
|
|
private final AtomicReference a;
|
|
|
|
public j3(Context context) {
|
|
super(context);
|
|
this.a = new AtomicReference();
|
|
if (b == null) {
|
|
try {
|
|
WebView.class.getDeclaredMethod("onTouchEvent", MotionEvent.class);
|
|
b = Boolean.TRUE;
|
|
} catch (NoSuchMethodException unused) {
|
|
com.applovin.impl.sdk.n.h("AppLovinSdk", "WebView.onTouchEvent() not implemented");
|
|
b = Boolean.FALSE;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.webkit.WebView, android.view.View
|
|
public boolean onTouchEvent(MotionEvent motionEvent) {
|
|
this.a.set(MotionEvent.obtain(motionEvent));
|
|
if (b.booleanValue()) {
|
|
return super.onTouchEvent(motionEvent);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public boolean a() {
|
|
return this.a.get() != null;
|
|
}
|
|
|
|
@Nullable
|
|
public MotionEvent getLastClickEvent() {
|
|
return (MotionEvent) this.a.get();
|
|
}
|
|
|
|
@Nullable
|
|
public MotionEvent getAndClearLastClickEvent() {
|
|
return (MotionEvent) this.a.getAndSet(null);
|
|
}
|
|
}
|