导航菜单

页面标题

页面副标题

Tasker v6.6.3 - e1.java 源代码

正在查看: Tasker v6.6.3 应用的 e1.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ci;

import android.content.Context;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.joaomgcd.taskerm.util.l7;
import o1.a2;
import o1.y1;
import v0.h2;

public final class e1 {

    public static final class a extends WebViewClient {
        final ik.p<WebView, WebResourceRequest, Boolean> a;
        final WebView b;
        final y1 c;

        a(ik.p<? super WebView, ? super WebResourceRequest, Boolean> pVar, WebView webView, y1 y1Var) {
            this.a = pVar;
            this.b = webView;
            this.c = y1Var;
        }

        @Override
        public void onPageFinished(WebView webView, String str) {
            WebSettings settings;
            super.onPageFinished(webView, str);
            this.b.scrollBy(0, 1);
            if (this.c != null) {
                if (webView != null && (settings = webView.getSettings()) != null) {
                    settings.setJavaScriptEnabled(true);
                }
                String f = yc.a.f(this.c.w());
                if (webView != null) {
                    webView.loadUrl("javascript:document.body.style.setProperty(\"color\", \"" + f + "\");");
                }
            }
        }

        @Override
        public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
            ik.p<WebView, WebResourceRequest, Boolean> pVar;
            return (webView == null || webResourceRequest == null || (pVar = this.a) == null) ? super.shouldOverrideUrlLoading(webView, webResourceRequest) : pVar.n(webView, webResourceRequest).booleanValue();
        }
    }

    public static final void c(final ci.z0 r21, androidx.compose.ui.d r22, boolean r23, o1.y1 r24, o1.y1 r25, ik.p<? super android.webkit.WebView, ? super android.webkit.WebResourceRequest, java.lang.Boolean> r26, ik.l<? super android.webkit.WebView, vj.e0> r27, v0.m r28, final int r29, final int r30) {
        throw new UnsupportedOperationException("Method not decompiled: ci.e1.c(ci.z0, androidx.compose.ui.d, boolean, o1.y1, o1.y1, ik.p, ik.l, v0.m, int, int):void");
    }

    public static final WebView d(Context context, y1 y1Var, boolean z, ik.l lVar, z0 z0Var, y1 y1Var2, ik.p pVar, Context context2) {
        jk.p.i(context2, "it");
        WebView webView = new WebView(context);
        if (y1Var != null) {
            webView.setBackgroundColor(a2.k(y1Var.w()));
        } else if (z && a6.c.a("FORCE_DARK")) {
            a6.b.b(webView.getSettings(), 2);
        }
        webView.setWebViewClient(new a(pVar, webView, y1Var2));
        if (lVar != null) {
            lVar.invoke(webView);
        }
        if (z0Var instanceof a1) {
            String b = ((a1) z0Var).b();
            if (y1Var2 != null) {
                b = g(b, y1Var2.w());
            }
            a1 a1Var = (a1) z0Var;
            webView.loadData(b, a1Var.c(), a1Var.a());
        } else {
            if (!(z0Var instanceof b1)) {
                throw new vj.o();
            }
            webView.loadUrl(((b1) z0Var).a());
        }
        return webView;
    }

    public static final vj.e0 e(z0 z0Var, androidx.compose.ui.d dVar, boolean z, y1 y1Var, y1 y1Var2, ik.p pVar, ik.l lVar, int i, int i2, v0.m mVar, int i3) {
        c(z0Var, dVar, z, y1Var, y1Var2, pVar, lVar, mVar, h2.a(i | 1), i2);
        return vj.e0.a;
    }

    private static final String f(long j) {
        return l7.o0(yc.a.f(j));
    }

    private static final String g(String str, long j) {
        return sk.q.o("<html>\n        |<head>\n        |<style type=\"text/css\">body{color: " + f(j) + ";}</style>\n        |</head>\n        |<body>" + str + "</body>\n        |</html>", null, 1, null);
    }
}