APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Gizmo
版本号:1.7.0
包名称:ai.saveall.app

MD5 校验值:51aae3247d6bd20bca268c4c9a4dd21c

反编译源代码说明

n.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package co.median.android;

import android.content.Context;
import android.os.Bundle;
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 n1.C0868E;

public class n extends WebView implements B1.j {

    private final String f10038g;

    private WebViewClient f10039h;

    private WebChromeClient f10040i;

    private boolean f10041j;

    private GestureDetector f10042k;

    private boolean f10043l;

    GestureDetector.SimpleOnGestureListener f10044m;

    class a extends GestureDetector.SimpleOnGestureListener {
        a() {
        }

        @Override
        public boolean onDown(MotionEvent motionEvent) {
            return true;
        }

        @Override
        public boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f5, float f6) {
            n.g(n.this);
            return false;
        }

        @Override
        public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f5, float f6) {
            n.g(n.this);
            return false;
        }
    }

    public interface b {
    }

    public n(Context context) {
        super(context);
        this.f10038g = getSettings().getUserAgentString();
        this.f10039h = null;
        this.f10040i = null;
        this.f10041j = true;
        this.f10043l = false;
        this.f10044m = new a();
        this.f10042k = new GestureDetector(context, this.f10044m);
    }

    static b g(n nVar) {
        nVar.getClass();
        return null;
    }

    public static boolean h() {
        return false;
    }

    @Override
    public void a(String str) {
        evaluateJavascript(str, null);
    }

    @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.f10040i;
        if (webChromeClient == null || !(webChromeClient instanceof k)) {
            return false;
        }
        return ((k) webChromeClient).d();
    }

    @Override
    public void e(Bundle bundle) {
        restoreState(bundle);
    }

    @Override
    public void f(String str, ValueCallback valueCallback) {
        evaluateJavascript(str, valueCallback);
    }

    @Override
    public String getDefaultUserAgent() {
        return this.f10038g;
    }

    @Override
    public int getMaxHorizontalScroll() {
        return computeHorizontalScrollRange() - getWidth();
    }

    @Deprecated
    public b getOnSwipeListener() {
        return null;
    }

    @Override
    public int getWebViewScrollX() {
        return getScrollX();
    }

    @Override
    public int getWebViewScrollY() {
        return getScrollY();
    }

    @Override
    public void goBack() {
        WebHistoryItem webHistoryItem;
        int i5;
        try {
            WebBackForwardList copyBackForwardList = copyBackForwardList();
            int currentIndex = copyBackForwardList.getCurrentIndex() - 1;
            while (true) {
                if (currentIndex < 0) {
                    webHistoryItem = null;
                    i5 = 0;
                    break;
                } else {
                    webHistoryItem = copyBackForwardList.getItemAtIndex(currentIndex);
                    if (!webHistoryItem.getUrl().equals("file:///android_asset/offline.html")) {
                        i5 = currentIndex - copyBackForwardList.getCurrentIndex();
                        break;
                    }
                    currentIndex--;
                }
            }
            if (webHistoryItem == null || this.f10039h.shouldOverrideUrlLoading(this, webHistoryItem.getUrl())) {
                return;
            }
            super.goBackOrForward(i5);
        } 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.f10039h;
        if (webViewClient == null || !webViewClient.shouldOverrideUrlLoading(this, str)) {
            super.loadUrl(str);
        }
    }

    @Override
    public boolean onTouchEvent(MotionEvent motionEvent) {
        this.f10042k.onTouchEvent(motionEvent);
        return super.onTouchEvent(motionEvent);
    }

    @Override
    public void reload() {
        WebViewClient webViewClient = this.f10039h;
        if (webViewClient != null && (webViewClient instanceof C0868E) && ((C0868E) webViewClient).a(this, getUrl(), true)) {
            return;
        }
        super.reload();
    }

    @Override
    public void scrollTo(int i5, int i6) {
        super.scrollTo(i5, i6);
    }

    @Override
    public void setCheckLoginSignup(boolean z5) {
        this.f10041j = z5;
    }

    @Deprecated
    public void setOnSwipeListener(b bVar) {
    }

    @Override
    public void setWebChromeClient(WebChromeClient webChromeClient) {
        this.f10040i = webChromeClient;
        super.setWebChromeClient(webChromeClient);
    }

    @Override
    public void setWebViewClient(WebViewClient webViewClient) {
        this.f10039h = webViewClient;
        super.setWebViewClient(webViewClient);
    }

    @Override
    public void zoomBy(float f5) {
        super.zoomBy(f5);
        this.f10043l = true;
    }

    @Override
    public boolean zoomOut() {
        this.f10043l = false;
        return super.zoomOut();
    }
}