导航菜单

页面标题

页面副标题

Tasker v6.5.11 - j.java 源代码

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

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


package rh;

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.z2;
import hk.o;
import lj.e0;
import o1.b2;
import o1.z1;
import v0.n;
import v0.n2;
import xj.l;
import xj.p;
import yj.q;

public final class j {

    static final class a extends q implements l<Context, WebView> {
        final Context i;
        final z1 q;
        final boolean r;
        final l<WebView, e0> s;
        final g t;
        final z1 u;
        final p<WebView, WebResourceRequest, Boolean> v;

        public static final class C0303a extends WebViewClient {
            final p<WebView, WebResourceRequest, Boolean> a;
            final WebView b;
            final z1 c;

            C0303a(p<? super WebView, ? super WebResourceRequest, Boolean> pVar, WebView webView, z1 z1Var) {
                this.a = pVar;
                this.b = webView;
                this.c = z1Var;
            }

            @Override
            public void onPageFinished(WebView webView, String str) {
                super.onPageFinished(webView, str);
                this.b.scrollBy(0, 1);
                if (this.c != null) {
                    WebSettings settings = webView != null ? webView.getSettings() : null;
                    if (settings != null) {
                        settings.setJavaScriptEnabled(true);
                    }
                    String f = bd.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) {
                p<WebView, WebResourceRequest, Boolean> pVar;
                return (webView == null || webResourceRequest == null || (pVar = this.a) == null) ? super.shouldOverrideUrlLoading(webView, webResourceRequest) : pVar.l(webView, webResourceRequest).booleanValue();
            }
        }

        a(Context context, z1 z1Var, boolean z, l<? super WebView, e0> lVar, g gVar, z1 z1Var2, p<? super WebView, ? super WebResourceRequest, Boolean> pVar) {
            super(1);
            this.i = context;
            this.q = z1Var;
            this.r = z;
            this.s = lVar;
            this.t = gVar;
            this.u = z1Var2;
            this.v = pVar;
        }

        @Override
        public final WebView invoke(Context context) {
            yj.p.i(context, "it");
            WebView webView = new WebView(this.i);
            z1 z1Var = this.q;
            boolean z = this.r;
            l<WebView, e0> lVar = this.s;
            g gVar = this.t;
            z1 z1Var2 = this.u;
            p<WebView, WebResourceRequest, Boolean> pVar = this.v;
            if (z1Var != null) {
                webView.setBackgroundColor(b2.k(z1Var.w()));
            } else if (z && c6.c.a("FORCE_DARK")) {
                c6.b.b(webView.getSettings(), 2);
            }
            webView.setWebViewClient(new C0303a(pVar, webView, z1Var2));
            if (lVar != null) {
                lVar.invoke(webView);
            }
            if (gVar instanceof h) {
                String b = ((h) gVar).b();
                if (z1Var2 != null) {
                    b = j.d(b, z1Var2.w());
                }
                h hVar = (h) gVar;
                webView.loadData(b, hVar.c(), hVar.a());
            } else if (gVar instanceof i) {
                webView.loadUrl(((i) gVar).a());
            }
            return webView;
        }
    }

    static final class b extends q implements p<n, Integer, e0> {
        final g i;
        final androidx.compose.ui.d q;
        final boolean r;
        final z1 s;
        final z1 t;
        final p<WebView, WebResourceRequest, Boolean> u;
        final l<WebView, e0> v;
        final int w;
        final int x;

        b(g gVar, androidx.compose.ui.d dVar, boolean z, z1 z1Var, z1 z1Var2, p<? super WebView, ? super WebResourceRequest, Boolean> pVar, l<? super WebView, e0> lVar, int i, int i2) {
            super(2);
            this.i = gVar;
            this.q = dVar;
            this.r = z;
            this.s = z1Var;
            this.t = z1Var2;
            this.u = pVar;
            this.v = lVar;
            this.w = i;
            this.x = i2;
        }

        public final void a(n nVar, int i) {
            j.a(this.i, this.q, this.r, this.s, this.t, this.u, this.v, nVar, n2.a(this.w | 1), this.x);
        }

        @Override
        public e0 l(n nVar, Integer num) {
            a(nVar, num.intValue());
            return e0.a;
        }
    }

    public static final void a(rh.g r19, androidx.compose.ui.d r20, boolean r21, o1.z1 r22, o1.z1 r23, xj.p<? super android.webkit.WebView, ? super android.webkit.WebResourceRequest, java.lang.Boolean> r24, xj.l<? super android.webkit.WebView, lj.e0> r25, v0.n r26, int r27, int r28) {
        throw new UnsupportedOperationException("Method not decompiled: rh.j.a(rh.g, androidx.compose.ui.d, boolean, o1.z1, o1.z1, xj.p, xj.l, v0.n, int, int):void");
    }

    private static final String c(long j) {
        return z2.Y(bd.a.f(j));
    }

    public static final String d(String str, long j) {
        return o.i("<html>\n        |<head>\n        |<style type=\"text/css\">body{color: " + c(j) + ";}</style>\n        |</head>\n        |<body>" + str + "</body>\n        |</html>", null, 1, null);
    }
}