导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - C0178p0.java 源代码

正在查看: Perplexity v2.48.1 应用的 C0178p0.java JAVA 源代码文件

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


package G2;

import ai.perplexity.app.android.ui.main.MainActivity;
import ai.perplexity.app.android.ui.widget.AppWidget2Receiver;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.widget.RemoteViews;
import c6.InterfaceC1752s;
import java.util.List;
import java.util.Map;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.MapsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import o3.EnumC3496m;
import t5.C4121g0;
import t5.C4123h0;

public final class C0178p0 implements Function1 {

    public final int f3798w;

    public final int f3799x;

    public final Object f3800y;

    public final Object f3801z;

    public C0178p0(Object obj, int i10, int i11, Object obj2) {
        this.f3798w = i11;
        this.f3799x = i10;
        this.f3800y = obj;
        this.f3801z = obj2;
    }

    public final Object invoke(Object obj) {
        int i10;
        int i11 = this.f3799x;
        Object obj2 = this.f3801z;
        Object obj3 = this.f3800y;
        switch (this.f3798w) {
            case 0:
                c6.X x8 = (c6.X) obj;
                Intrinsics.h(x8, "$this$layout");
                c6.Y y8 = (c6.Y) obj3;
                int i12 = i11 - y8.f25009x;
                c6.X.d(x8, y8, 0, i12);
                c6.Y y10 = (c6.Y) obj2;
                int i13 = y10.f25009x;
                int i14 = i11 - i13;
                int i15 = i14 / 2;
                if (i13 + i15 >= i12) {
                    i15 = i14 - y8.f25009x;
                }
                c6.X.d(x8, y10, 0, i15);
                return Unit.a;
            case 1:
                InterfaceC1752s interfaceC1752s = (InterfaceC1752s) obj;
                Intrinsics.h(interfaceC1752s, "layoutCoordinates");
                ((C4121g0) obj3).m(1.0f);
                ((C4123h0) obj2).m((-((int) (interfaceC1752s.k() & 4294967295L))) - i11);
                return Unit.a;
            default:
                i7.f fVar = (i7.f) obj;
                int i16 = AppWidget2Receiver.f19579a;
                Intrinsics.h(fVar, "it");
                List list = (List) obj3;
                if (fVar.equals(list.get(0))) {
                    i10 = 2131623965;
                } else if (fVar.equals(list.get(1))) {
                    i10 = 2131623966;
                } else if (fVar.equals(list.get(2))) {
                    i10 = 2131623968;
                } else if (fVar.equals(list.get(3))) {
                    i10 = 2131623970;
                } else if (fVar.equals(list.get(4))) {
                    i10 = 2131623971;
                } else if (fVar.equals(list.get(5))) {
                    i10 = 2131623967;
                } else if (fVar.equals(list.get(6))) {
                    i10 = 2131623969;
                } else {
                    fVar.equals(list.get(7));
                    i10 = 2131623972;
                }
                Context context = (Context) obj2;
                RemoteViews remoteViews = new RemoteViews(context.getPackageName(), i10);
                for (Map.Entry entry : MapsKt.g0(new Pair[]{new Pair(2131428152, EnumC3496m.f37270X), new Pair(2131428154, EnumC3496m.f37272Z), new Pair(2131428151, EnumC3496m.f37273r0), new Pair(2131428153, EnumC3496m.f37271Y), new Pair(2131427976, EnumC3496m.f37274s0), new Pair(2131428155, EnumC3496m.f37275t0)}).entrySet()) {
                    int intValue = ((Number) entry.getKey()).intValue();
                    EnumC3496m enumC3496m = (EnumC3496m) entry.getValue();
                    Intent intent = new Intent(context, (Class<?>) MainActivity.class);
                    Intrinsics.h(enumC3496m, "action");
                    Uri build = new Uri.Builder().scheme("https").authority("www.perplexity.ai").appendPath("appwidget").appendPath("action").appendPath(enumC3496m.f37280w).build();
                    Intrinsics.g(build, "build(...)");
                    intent.setData(build);
                    remoteViews.setOnClickPendingIntent(intValue, PendingIntent.getActivity(context, i11, intent, 67108864));
                }
                return remoteViews;
        }
    }

    public C0178p0(List list, AppWidget2Receiver appWidget2Receiver, Context context, int i10) {
        this.f3798w = 2;
        this.f3800y = list;
        this.f3801z = context;
        this.f3799x = i10;
    }
}