Anybuypro - Free followers v1.0.0版本的 MD5 值为:ac97504c3229ff11289cc66f3291d928
以下内容为反编译后的 n.java 源代码,内容仅作参考
package co.median.android;
import android.content.Context;
import android.os.Bundle;
import android.util.JsonReader;
import android.util.JsonToken;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.webkit.ValueCallback;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebHistoryItem;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import java.io.IOException;
import java.io.StringReader;
import r0.b0;
import r0.j0;
public class n extends WebView implements t0.j {
private WebViewClient f3724d;
private WebChromeClient f3725e;
private boolean f3726f;
private GestureDetector f3727g;
private boolean f3728h;
GestureDetector.SimpleOnGestureListener f3729i;
class a extends GestureDetector.SimpleOnGestureListener {
a() {
}
@Override
public boolean onDown(MotionEvent motionEvent) {
return true;
}
@Override
public boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f3, float f4) {
n.f(n.this);
return false;
}
@Override
public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f3, float f4) {
n.f(n.this);
return false;
}
}
public class b implements ValueCallback<String> {
b() {
}
@Override
public void onReceiveValue(String str) {
JsonReader jsonReader = new JsonReader(new StringReader(str));
jsonReader.setLenient(true);
try {
if (jsonReader.peek() != JsonToken.NULL) {
if (jsonReader.peek() == JsonToken.STRING && (str = jsonReader.nextString()) == null) {
return;
}
j0.f6636a = str;
}
} catch (IOException unused) {
j0.f6636a = "GoNativeGetJsResultsError";
}
}
}
public interface c {
}
public n(Context context) {
super(context);
this.f3724d = null;
this.f3725e = null;
this.f3726f = true;
this.f3728h = false;
this.f3729i = new a();
this.f3727g = new GestureDetector(context, this.f3729i);
}
static c f(n nVar) {
nVar.getClass();
return null;
}
public static boolean g() {
return false;
}
@Override
public void a(String str) {
evaluateJavascript(str, new b());
}
@Override
public void b(String str) {
super.loadUrl(str);
}
@Override
public void c(Bundle bundle) {
saveState(bundle);
}
@Override
public boolean canGoForward() {
WebBackForwardList copyBackForwardList = copyBackForwardList();
WebHistoryItem itemAtIndex = copyBackForwardList.getItemAtIndex(copyBackForwardList.getCurrentIndex() + 1);
return (itemAtIndex == null || !"file:///android_asset/offline.html".equals(itemAtIndex.getUrl())) ? super.canGoForward() : copyBackForwardList.getItemAtIndex(copyBackForwardList.getCurrentIndex() + 2) != null;
}
@Override
public boolean d() {
WebChromeClient webChromeClient = this.f3725e;
if (webChromeClient == null || !(webChromeClient instanceof j)) {
return false;
}
return ((j) webChromeClient).d();
}
@Override
public void e(Bundle bundle) {
restoreState(bundle);
}
@Override
public int getMaxHorizontalScroll() {
return computeHorizontalScrollRange() - getWidth();
}
public c getOnSwipeListener() {
return null;
}
@Override
public int getWebViewScrollX() {
return getScrollX();
}
@Override
public int getWebViewScrollY() {
return getScrollY();
}
@Override
public void goBack() {
WebHistoryItem webHistoryItem;
int i3;
try {
WebBackForwardList copyBackForwardList = copyBackForwardList();
int currentIndex = copyBackForwardList.getCurrentIndex() - 1;
while (true) {
if (currentIndex < 0) {
webHistoryItem = null;
i3 = 0;
break;
}
webHistoryItem = copyBackForwardList.getItemAtIndex(currentIndex);
if (!webHistoryItem.getUrl().equals("file:///android_asset/offline.html")) {
i3 = currentIndex - copyBackForwardList.getCurrentIndex();
break;
}
currentIndex--;
}
if (webHistoryItem == null || this.f3724d.shouldOverrideUrlLoading(this, webHistoryItem.getUrl())) {
return;
}
super.goBackOrForward(i3);
} catch (Exception unused) {
super.goBack();
}
}
@Override
public void goForward() {
WebBackForwardList copyBackForwardList = copyBackForwardList();
WebHistoryItem itemAtIndex = copyBackForwardList.getItemAtIndex(copyBackForwardList.getCurrentIndex() + 1);
if (itemAtIndex == null || !"file:///android_asset/offline.html".equals(itemAtIndex.getUrl())) {
super.goForward();
} else if (copyBackForwardList.getItemAtIndex(copyBackForwardList.getCurrentIndex() + 2) != null) {
goBackOrForward(2);
}
}
@Override
public void loadUrl(String str) {
if (str == null) {
return;
}
if ("file:///offline.html".equals(str)) {
str = "file:///android_asset/offline.html";
}
if (str.startsWith("javascript:")) {
a(str.substring(11));
return;
}
WebViewClient webViewClient = this.f3724d;
if (webViewClient == null || !webViewClient.shouldOverrideUrlLoading(this, str)) {
super.loadUrl(str);
}
}
@Override
public boolean onTouchEvent(MotionEvent motionEvent) {
this.f3727g.onTouchEvent(motionEvent);
return super.onTouchEvent(motionEvent);
}
@Override
public void reload() {
WebViewClient webViewClient = this.f3724d;
if (webViewClient != null && (webViewClient instanceof b0) && ((b0) webViewClient).a(this, getUrl(), true)) {
return;
}
super.reload();
}
@Override
public void scrollTo(int i3, int i4) {
super.scrollTo(i3, i4);
}
@Override
public void setCheckLoginSignup(boolean z2) {
this.f3726f = z2;
}
public void setOnSwipeListener(c cVar) {
}
@Override
public void setWebChromeClient(WebChromeClient webChromeClient) {
this.f3725e = webChromeClient;
super.setWebChromeClient(webChromeClient);
}
@Override
public void setWebViewClient(WebViewClient webViewClient) {
this.f3724d = webViewClient;
super.setWebViewClient(webViewClient);
}
@Override
public void zoomBy(float f3) {
super.zoomBy(f3);
this.f3728h = true;
}
@Override
public boolean zoomOut() {
this.f3728h = false;
return super.zoomOut();
}
}