WeChat.apk(点击下载) / GroupToolsComponet.java


package com.tencent.mm.ui.chatting.component;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Rect;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.camera.core.FocusMeteringAction;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import bj.d0;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.tencent.mars.cdn.CdnLogic;
import com.tencent.mm.R;
import com.tencent.mm.autogen.events.NotifyGroupToolsEvent;
import com.tencent.mm.autogen.mmdata.rpt.ChatRoomToolPanelOperateLogStruct;
import com.tencent.mm.chatroom.storage.GroupToolItem;
import com.tencent.mm.chatroom.ui.GroupToolsManagereUI;
import com.tencent.mm.live.api.LiveConfig;
import com.tencent.mm.message.l;
import com.tencent.mm.plugin.appbrand.config.WxaAttributes;
import com.tencent.mm.plugin.appbrand.service.c1;
import com.tencent.mm.plugin.appbrand.service.d1;
import com.tencent.mm.sdk.event.IListener;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.MMApplicationContext;
import com.tencent.mm.sdk.platformtools.MMHandlerThread;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.mm.storage.f4;
import com.tencent.mm.storage.g4;
import com.tencent.mm.storage.w1;
import com.tencent.mm.storage.z1;
import com.tencent.mm.ui.v3;
import com.tencent.xweb.util.FrequentLimiter;
import d60.z;
import i14.e0;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import jh2.k0;
import nf0.e6;
import nf0.w0;
import om0.o;
import p64.i0;
import p64.n;
import rg0.c;
import u14.b0;

@mj.b(exportInterface = b0.class)
public class GroupToolsComponet extends a implements b0 {
    public static final Long G = Long.valueOf((long) FrequentLimiter.WEEK_MILLS);
    public boolean A = false;
    public j B = new e();
    public j C = new f();
    public IListener<NotifyGroupToolsEvent> D = new IListener<NotifyGroupToolsEvent>(com.tencent.mm.app.h.f61283d) {
        /* class com.tencent.mm.ui.chatting.component.GroupToolsComponet.AnonymousClass3 */

        {
            this.__eventId = -1721696603;
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.tencent.mm.sdk.event.IEvent] */
        @Override // com.tencent.mm.sdk.event.IListener
        public boolean callback(NotifyGroupToolsEvent notifyGroupToolsEvent) {
            NotifyGroupToolsEvent notifyGroupToolsEvent2 = notifyGroupToolsEvent;
            if (notifyGroupToolsEvent2 != null) {
                Log.i("MicroMsg.roomtools.GroupToolsComponet", "NotifyGroupToolsEvent %s", Util.nullAs(notifyGroupToolsEvent2.f63676d.f63677a, ""));
                if (Util.isEqual(GroupToolsComponet.this.f178869d.r(), notifyGroupToolsEvent2.f63676d.f63677a)) {
                    com.tencent.mm.ui.chatting.view.e eVar = GroupToolsComponet.this.f178707t;
                    if (eVar != null) {
                        eVar.b();
                    }
                    GroupToolsComponet.this.m6(true);
                }
            }
            return true;
        }
    };
    public View.OnClickListener E = new g();
    public Runnable F = new d();

    /* renamed from: e  reason: collision with root package name */
    public View f178695e;

    /* renamed from: f  reason: collision with root package name */
    public LinearLayout f178696f;

    /* renamed from: g  reason: collision with root package name */
    public NestedScrollView f178697g;

    /* renamed from: h  reason: collision with root package name */
    public LinearLayout f178698h;

    /* renamed from: i  reason: collision with root package name */
    public LinearLayout f178699i;

    /* renamed from: j  reason: collision with root package name */
    public RecyclerView f178700j;

    /* renamed from: n  reason: collision with root package name */
    public LinearLayout f178701n;

    /* renamed from: o  reason: collision with root package name */
    public LinearLayout f178702o;

    /* renamed from: p  reason: collision with root package name */
    public RecyclerView f178703p;

    /* renamed from: q  reason: collision with root package name */
    public RelativeLayout f178704q;

    /* renamed from: r  reason: collision with root package name */
    public ImageView f178705r;

    /* renamed from: s  reason: collision with root package name */
    public View f178706s;

    /* renamed from: t  reason: collision with root package name */
    public com.tencent.mm.ui.chatting.view.e f178707t;

    /* renamed from: u  reason: collision with root package name */
    public i0 f178708u = null;

    /* renamed from: v  reason: collision with root package name */
    public m f178709v;

    /* renamed from: w  reason: collision with root package name */
    public m f178710w;

    /* renamed from: x  reason: collision with root package name */
    public Thread f178711x;

    /* renamed from: y  reason: collision with root package name */
    public hj.e f178712y = null;

    /* renamed from: z  reason: collision with root package name */
    public ArrayList<GroupToolItem> f178713z = new ArrayList<>();

    public class a implements Comparator<GroupToolItem> {
        public a(GroupToolsComponet groupToolsComponet) {
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
        @Override // java.util.Comparator
        public int compare(GroupToolItem groupToolItem, GroupToolItem groupToolItem2) {
            return Long.compare(groupToolItem2.f73091f, groupToolItem.f73091f);
        }
    }

    public class b implements Runnable {
        public b() {
        }

        public void run() {
            Object obj;
            Object[] objArr = new Object[1];
            Thread thread = GroupToolsComponet.this.f178711x;
            if (thread != null) {
                obj = Boolean.valueOf(thread.isAlive());
            } else {
                obj = "null";
            }
            objArr[0] = obj;
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentToolsThread interrupt() %s", objArr);
            Thread thread2 = GroupToolsComponet.this.f178711x;
            if (thread2 != null && thread2.isAlive()) {
                GroupToolsComponet.this.f178711x.interrupt();
            }
        }
    }

    public class c implements Runnable {
        public c() {
        }

        public void run() {
            Thread thread = GroupToolsComponet.this.f178711x;
            if (thread != null && thread.isAlive()) {
                GroupToolsComponet groupToolsComponet = GroupToolsComponet.this;
                i0 i0Var = groupToolsComponet.f178708u;
                if (i0Var == null) {
                    groupToolsComponet.f178708u = i14.j.Q(groupToolsComponet.f178869d.f(), groupToolsComponet.f178869d.f().getString(R.string.f367625yv), groupToolsComponet.f178869d.f().getString(R.string.f367519vx), true, true, new v2(groupToolsComponet));
                } else if (!i0Var.isShowing()) {
                    groupToolsComponet.f178708u.show();
                }
            }
        }
    }

    public class d implements Runnable {

        /* renamed from: d  reason: collision with root package name */
        public ArrayList<GroupToolItem> f178717d = new ArrayList<>();

        public class a implements Comparator<GroupToolItem> {
            public a(d dVar) {
            }

            /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
            @Override // java.util.Comparator
            public int compare(GroupToolItem groupToolItem, GroupToolItem groupToolItem2) {
                return Long.compare(groupToolItem2.f73091f, groupToolItem.f73091f);
            }
        }

        public class b implements Runnable {
            public b() {
            }

            public void run() {
                i0 i0Var = GroupToolsComponet.this.f178708u;
                if (i0Var != null) {
                    i0Var.dismiss();
                }
                GroupToolsComponet.this.n6();
            }
        }

        public d() {
        }

        public final boolean a() {
            return this.f178717d.size() >= 20;
        }

        /* JADX WARNING: Code restructure failed: missing block: B:37:0x00ec, code lost:
            if ((r12.f76866i == 44 ? 1 : r9) != 0) goto L_0x00ee;
         */
        public void run() {
            int i15;
            Exception e15;
            boolean z15;
            boolean z16;
            l.b v15;
            boolean z17;
            int i16;
            long c15 = e6.c();
            if (System.currentTimeMillis() > c15) {
                c15 = System.currentTimeMillis();
            }
            long c16 = e6.c();
            hj.e Ga = ((ej.d) yz3.j.c(ej.d.class)).YN0().Ga(GroupToolsComponet.this.f178869d.r());
            int i17 = 2;
            int i18 = 0;
            try {
                this.f178717d.clear();
                boolean z18 = false;
                int i19 = 0;
                while (true) {
                    int i25 = 4;
                    if (Thread.interrupted() || a() || z18 || i19 >= 26) {
                        this.f178717d.size();
                        GroupToolsComponet groupToolsComponet = GroupToolsComponet.this;
                        ArrayList<GroupToolItem> arrayList = this.f178717d;
                        groupToolsComponet.getClass();
                        Iterator<GroupToolItem> it = arrayList.iterator();
                    } else {
                        kh2.l WU = ((k0) z.q(k0.class)).WU();
                        String r15 = GroupToolsComponet.this.f178869d.r();
                        int i26 = i19 + 1;
                        long j15 = (long) i26;
                        Long l15 = GroupToolsComponet.G;
                        long longValue = l15.longValue();
                        Long.signum(j15);
                        long j16 = c15 - (j15 * longValue);
                        long j17 = (long) i19;
                        long longValue2 = l15.longValue();
                        Long.signum(j17);
                        List<f4> It = ((g4) WU).It(r15, j16, c15 - (j17 * longValue2));
                        Object[] objArr = new Object[i17];
                        objArr[i18] = Integer.valueOf(i19);
                        objArr[1] = Integer.valueOf(It != null ? ((ArrayList) It).size() : i18);
                        Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask i:%s size:%s", objArr);
                        if (It != null) {
                            ArrayList arrayList2 = (ArrayList) It;
                            if (arrayList2.size() != 0) {
                                Iterator it4 = arrayList2.iterator();
                                while (true) {
                                    if (!it4.hasNext()) {
                                        z18 = z18;
                                        break;
                                    }
                                    f4 f4Var = (f4) it4.next();
                                    if (!((f4Var.F & i25) == i25 || f4Var.getType() == 10000 || (v15 = l.b.v(f4Var.getContent(), null)) == null)) {
                                        if (!uf0.c.a(v15)) {
                                        }
                                        GroupToolItem b15 = d0.b(f4Var);
                                        if (b15 != null) {
                                            b15.toString();
                                            if (this.f178717d.contains(b15)) {
                                                i16 = i18;
                                            } else {
                                                this.f178717d.add(b15);
                                                i16 = 1;
                                            }
                                            if (i16 != 0 && a()) {
                                                break;
                                            }
                                        }
                                        if (d0.d(f4Var)) {
                                            GroupToolItem groupToolItem = new GroupToolItem("roomaa@app.origin", "", f4Var.getCreateTime());
                                            if (this.f178717d.contains(groupToolItem)) {
                                                z17 = false;
                                            } else {
                                                this.f178717d.add(groupToolItem);
                                                z17 = true;
                                            }
                                            if (z17 && a()) {
                                                break;
                                            }
                                        } else {
                                            continue;
                                        }
                                    }
                                    i18 = 0;
                                    i25 = 4;
                                }
                                z18 = true;
                                if (!a()) {
                                    i19 = i26;
                                    i17 = 2;
                                    i18 = 0;
                                }
                            }
                        }
                        z18 = true;
                        i19 = i26;
                        i17 = 2;
                        i18 = 0;
                    }
                }
                this.f178717d.size();
                GroupToolsComponet groupToolsComponet2 = GroupToolsComponet.this;
                ArrayList<GroupToolItem> arrayList3 = this.f178717d;
                groupToolsComponet2.getClass();
                Iterator<GroupToolItem> it5 = arrayList3.iterator();
                while (it5.hasNext()) {
                    Objects.toString(it5.next());
                }
                if (Ga == null) {
                    hj.e eVar = new hj.e();
                    try {
                        eVar.field_chatroomname = GroupToolsComponet.this.f178869d.r();
                        Ga = eVar;
                        z15 = false;
                    } catch (Exception e16) {
                        e15 = e16;
                        Ga = eVar;
                        i15 = 2;
                        Log.e("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask Exception:%s %s", e15.getClass().getSimpleName(), e15.getMessage());
                        Object[] objArr2 = new Object[i15];
                        objArr2[0] = GroupToolsComponet.this.f178869d.r();
                        objArr2[1] = Long.valueOf(e6.c() - c16);
                        Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask roomname:%s interTime:%s", objArr2);
                        GroupToolsComponet.this.f178713z.clear();
                        GroupToolsComponet.this.f178713z.addAll(Ga.f226664u);
                        Collections.sort(GroupToolsComponet.this.f178713z, new a(this));
                        MMHandlerThread.postToMainThread(new b());
                    }
                } else {
                    z15 = true;
                }
                Ga.field_queryState = 1;
                int size = Ga.f226664u.size();
                Ga.f226664u.clear();
                Ga.f226664u.addAll(this.f178717d);
                Ga.field_recentUseToolList = hj.e.r2(this.f178717d);
                if (z15) {
                    z16 = ((ej.d) yz3.j.c(ej.d.class)).YN0().update(Ga, new String[0]);
                } else {
                    z16 = ((ej.d) yz3.j.c(ej.d.class)).YN0().insert(Ga);
                }
                Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask oldRecent:%s newRecent:%s exist:%s queryEnd:%s result:%s", Integer.valueOf(size), Integer.valueOf(this.f178717d.size()), Boolean.valueOf(z15), Boolean.valueOf(z18), Boolean.valueOf(z16));
                i15 = 2;
            } catch (Exception e17) {
                e15 = e17;
                i15 = 2;
                Log.e("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask Exception:%s %s", e15.getClass().getSimpleName(), e15.getMessage());
                Object[] objArr22 = new Object[i15];
                objArr22[0] = GroupToolsComponet.this.f178869d.r();
                objArr22[1] = Long.valueOf(e6.c() - c16);
                Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask roomname:%s interTime:%s", objArr22);
                GroupToolsComponet.this.f178713z.clear();
                GroupToolsComponet.this.f178713z.addAll(Ga.f226664u);
                Collections.sort(GroupToolsComponet.this.f178713z, new a(this));
                MMHandlerThread.postToMainThread(new b());
            }
            Object[] objArr222 = new Object[i15];
            objArr222[0] = GroupToolsComponet.this.f178869d.r();
            objArr222[1] = Long.valueOf(e6.c() - c16);
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "getRecentUseToolTask roomname:%s interTime:%s", objArr222);
            GroupToolsComponet.this.f178713z.clear();
            GroupToolsComponet.this.f178713z.addAll(Ga.f226664u);
            Collections.sort(GroupToolsComponet.this.f178713z, new a(this));
            MMHandlerThread.postToMainThread(new b());
        }
    }

    public class e implements j {
        public e() {
        }

        @Override // com.tencent.mm.ui.chatting.component.GroupToolsComponet.j
        public void onClick(View view) {
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "iStickToolsCallback click");
            Object tag = view.getTag();
            if (tag instanceof GroupToolItem) {
                GroupToolItem groupToolItem = (GroupToolItem) tag;
                if (Util.isEqual(groupToolItem.f73089d, "roomaa@app.origin")) {
                    GroupToolsComponet.i6(GroupToolsComponet.this);
                } else if (Util.isEqual(groupToolItem.f73089d, "roomlive@app.origin")) {
                    GroupToolsComponet.j6(GroupToolsComponet.this);
                } else {
                    GroupToolsComponet.k6(GroupToolsComponet.this, groupToolItem, "1", true);
                }
                GroupToolsComponet.l6(GroupToolsComponet.this, groupToolItem, true);
            }
            com.tencent.mm.ui.chatting.view.e eVar = GroupToolsComponet.this.f178707t;
            if (eVar != null) {
                eVar.b();
            }
        }
    }

    public class f implements j {
        public f() {
        }

        @Override // com.tencent.mm.ui.chatting.component.GroupToolsComponet.j
        public void onClick(View view) {
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "iRecentUseToolsCallback click");
            Object tag = view.getTag();
            if (tag instanceof GroupToolItem) {
                GroupToolItem groupToolItem = (GroupToolItem) tag;
                if (Util.isEqual(groupToolItem.f73089d, "roomaa@app.origin")) {
                    GroupToolsComponet.i6(GroupToolsComponet.this);
                } else if (Util.isEqual(groupToolItem.f73089d, "roomlive@app.origin")) {
                    GroupToolsComponet.j6(GroupToolsComponet.this);
                } else {
                    GroupToolsComponet.k6(GroupToolsComponet.this, groupToolItem, "2", false);
                }
                GroupToolsComponet.l6(GroupToolsComponet.this, groupToolItem, false);
            }
            com.tencent.mm.ui.chatting.view.e eVar = GroupToolsComponet.this.f178707t;
            if (eVar != null) {
                eVar.b();
            }
        }
    }

    public class g implements View.OnClickListener {
        public g() {
        }

        public void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/ui/chatting/component/GroupToolsComponet$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "stickManagerLl click");
            Intent intent = new Intent(GroupToolsComponet.this.f178869d.f(), GroupToolsManagereUI.class);
            intent.putExtra("key_chatroomname", GroupToolsComponet.this.f178869d.r());
            intent.putParcelableArrayListExtra("key_recent_use_tools", GroupToolsComponet.this.f178713z);
            Activity f15 = GroupToolsComponet.this.f178869d.f();
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(f15, aVar.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet$4", "onClick", "(Landroid/view/View;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            f15.startActivity((Intent) aVar.a(0));
            j30.a.e(f15, "com/tencent/mm/ui/chatting/component/GroupToolsComponet$4", "onClick", "(Landroid/view/View;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            GroupToolsComponet.this.D.alive();
            j30.a.g(this, "com/tencent/mm/ui/chatting/component/GroupToolsComponet$4", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
        }
    }

    public class h implements n.p {
        public h() {
        }

        @Override // p64.n.p
        public void onDismiss() {
            NestedScrollView nestedScrollView = GroupToolsComponet.this.f178697g;
            if (nestedScrollView != null) {
                nestedScrollView.f(33);
            }
        }
    }

    public class i implements Runnable {
        public i() {
        }

        public void run() {
            GroupToolsComponet.this.f178697g.f(33);
        }
    }

    public interface j {
        void onClick(View view);
    }

    public static class k extends RecyclerView.z {
        public static final rg0.c C;
        public ImageView A;
        public TextView B;

        /* renamed from: z  reason: collision with root package name */
        public View f178725z;

        static {
            c.b bVar = new c.b();
            bVar.f294629o = R.raw.app_brand_app_default_icon_for_tail;
            int b15 = gy3.a.b(MMApplicationContext.getContext(), 20);
            int b16 = gy3.a.b(MMApplicationContext.getContext(), 20);
            bVar.f294624j = b15;
            bVar.f294625k = b16;
            bVar.f294634t = true;
            bVar.f294616b = true;
            bVar.f294615a = true;
            C = bVar.a();
        }

        public k(View view) {
            super(view);
            this.f178725z = view;
            LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.oer);
            this.A = (ImageView) view.findViewById(R.id.oev);
            this.B = (TextView) view.findViewById(R.id.oex);
        }
    }

    public static class l extends RecyclerView.l {

        /* renamed from: d  reason: collision with root package name */
        public final int f178726d;

        /* renamed from: e  reason: collision with root package name */
        public final int f178727e;

        public l(int i15, int i16) {
            this.f178727e = i15;
            this.f178726d = i16;
        }

        @Override // androidx.recyclerview.widget.RecyclerView.l
        public void l(Rect rect, View view, RecyclerView recyclerView, RecyclerView.w wVar) {
            rect.left = this.f178727e * (recyclerView.Q0(view) % this.f178726d);
        }
    }

    public static class m extends RecyclerView.e {

        /* renamed from: d  reason: collision with root package name */
        public Context f178728d;

        /* renamed from: e  reason: collision with root package name */
        public List<GroupToolItem> f178729e;

        /* renamed from: f  reason: collision with root package name */
        public j f178730f;

        public class a implements c1.a {

            /* renamed from: a  reason: collision with root package name */
            public final /* synthetic */ k f178731a;

            /* renamed from: com.tencent.mm.ui.chatting.component.GroupToolsComponet$m$a$a  reason: collision with other inner class name */
            public class RunnableC1843a implements Runnable {

                /* renamed from: d  reason: collision with root package name */
                public final /* synthetic */ WxaAttributes f178733d;

                public RunnableC1843a(WxaAttributes wxaAttributes) {
                    this.f178733d = wxaAttributes;
                }

                public void run() {
                    a aVar = a.this;
                    m.this.T4(aVar.f178731a, this.f178733d);
                }
            }

            public a(k kVar) {
                this.f178731a = kVar;
            }

            @Override // com.tencent.mm.plugin.appbrand.service.c1.a
            public void a(WxaAttributes wxaAttributes) {
                MMHandlerThread.postToMainThread(new RunnableC1843a(wxaAttributes));
            }
        }

        public class b implements View.OnClickListener {
            public b() {
            }

            public void onClick(View view) {
                ArrayList arrayList = new ArrayList();
                arrayList.add(view);
                Object[] array = arrayList.toArray();
                arrayList.clear();
                j30.a.b("com/tencent/mm/ui/chatting/component/GroupToolsComponet$ToolAdapter$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
                j jVar = m.this.f178730f;
                if (jVar != null) {
                    jVar.onClick(view);
                }
                j30.a.g(this, "com/tencent/mm/ui/chatting/component/GroupToolsComponet$ToolAdapter$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
            }
        }

        public m(Context context, List<GroupToolItem> list, j jVar) {
            this.f178728d = context;
            this.f178729e = list;
            this.f178730f = jVar;
        }

        public final void T4(k kVar, WxaAttributes wxaAttributes) {
            String str;
            qg0.a b15 = qg0.a.b();
            String str2 = "";
            if (wxaAttributes != null) {
                str = wxaAttributes.field_smallHeadURL;
            } else {
                str = str2;
            }
            b15.h(str, kVar.A, k.C);
            TextView textView = kVar.B;
            if (wxaAttributes != null) {
                str2 = wxaAttributes.field_nickname;
            }
            textView.setText(str2);
        }

        @Override // androidx.recyclerview.widget.RecyclerView.e
        public int getItemCount() {
            return this.f178729e.size();
        }

        @Override // androidx.recyclerview.widget.RecyclerView.e
        public int getItemViewType(int i15) {
            return 0;
        }

        @Override // androidx.recyclerview.widget.RecyclerView.e
        public void onBindViewHolder(RecyclerView.z zVar, int i15) {
            List<GroupToolItem> list = this.f178729e;
            if (list != null && i15 >= 0 && i15 < list.size()) {
                k kVar = (k) zVar;
                GroupToolItem groupToolItem = this.f178729e.get(i15);
                View view = kVar.f178725z;
                k30.a aVar = new k30.a();
                ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
                aVar.c(0);
                j30.a.d(view, aVar.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet$ToolAdapter", "onBindViewHolder", "(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                view.setVisibility(((Integer) aVar.a(0)).intValue());
                j30.a.e(view, "com/tencent/mm/ui/chatting/component/GroupToolsComponet$ToolAdapter", "onBindViewHolder", "(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                if (Util.isEqual(groupToolItem.f73089d, "roomaa@app.origin")) {
                    kVar.A.setImageResource(R.drawable.bj5);
                    kVar.B.setText(R.string.ftd);
                } else if (Util.isEqual(groupToolItem.f73089d, "roomlive@app.origin")) {
                    kVar.A.setImageDrawable(gy3.a.i(this.f178728d, R.drawable.bj6));
                    kVar.B.setText(R.string.f367448ty);
                } else {
                    WxaAttributes e35 = ((c1) yz3.j.c(c1.class)).e3(groupToolItem.f73089d);
                    if (e35 == null) {
                        ((c1) yz3.j.c(c1.class)).KZ(groupToolItem.f73089d, new a(kVar));
                    } else {
                        T4(kVar, e35);
                    }
                }
                kVar.f178725z.setTag(groupToolItem);
                kVar.f178725z.setOnClickListener(new b());
            }
        }

        @Override // androidx.recyclerview.widget.RecyclerView.e
        public RecyclerView.z onCreateViewHolder(ViewGroup viewGroup, int i15) {
            return new k(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.f365847tj, viewGroup, false));
        }
    }

    public static void i6(GroupToolsComponet groupToolsComponet) {
        if (z1.w5(groupToolsComponet.f178869d.r())) {
            i14.j.E(groupToolsComponet.f178869d.f(), groupToolsComponet.f178869d.f().getString(R.string.ftc), "", groupToolsComponet.f178869d.f().getString(R.string.l_e), false, new q2(groupToolsComponet));
            return;
        }
        Intent intent = new Intent();
        intent.setClassName(groupToolsComponet.f178869d.f(), "com.tencent.mm.plugin.aa.ui.LaunchAAUI");
        intent.putExtra("enter_scene", 7);
        intent.putExtra("chatroom_name", groupToolsComponet.f178869d.r());
        Activity f15 = groupToolsComponet.f178869d.f();
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(f15, aVar.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "gotoAAPay", "()V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        f15.startActivity((Intent) aVar.a(0));
        j30.a.e(f15, "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "gotoAAPay", "()V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public static void j6(GroupToolsComponet groupToolsComponet) {
        groupToolsComponet.getClass();
        if (((kd3.i) yz3.j.c(kd3.i.class)).isTeenMode()) {
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "exit in teen mode");
            ((kd3.i) yz3.j.c(kd3.i.class)).O4(groupToolsComponet.f178869d.f());
            return;
        }
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "gotoRoomLiveEntrance");
        boolean M1 = ((xw.d) yz3.j.c(xw.d.class)).M1(groupToolsComponet.f178869d.f(), "android.permission.CAMERA", 25, "", "");
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "summerper checkPermission checkCamera[%b], stack[%s], activity[%s]", Boolean.valueOf(M1), Util.getStack(), groupToolsComponet.f178869d.f());
        if (M1) {
            boolean M12 = ((xw.d) yz3.j.c(xw.d.class)).M1(groupToolsComponet.f178869d.f(), "android.permission.RECORD_AUDIO", 25, "", "");
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "summerper checkPermission checkmicrophone[%b], stack[%s], activity[%s]", Boolean.valueOf(M12), Util.getStack(), groupToolsComponet.f178869d.f());
            if (!M12 || zk.a.g(groupToolsComponet.f178869d.f()) || zk.a.z(groupToolsComponet.f178869d.f()) || zk.a.u(groupToolsComponet.f178869d.f()) || zk.a.e(groupToolsComponet.f178869d.f())) {
                return;
            }
            if (z.s().i().F(w1.a.Ol, 0) == 1) {
                Activity f15 = groupToolsComponet.f178869d.f();
                LayoutInflater.from(f15);
                n nVar = new n((Context) f15, 1, false);
                ArrayList arrayList = new ArrayList();
                new ArrayList();
                r2 r2Var = new r2(groupToolsComponet, f15);
                s2 s2Var = new s2(groupToolsComponet);
                Iterator it = arrayList.iterator();
                while (it.hasNext()) {
                    e0 e0Var = (e0) ((MenuItem) it.next());
                    e0Var.f229718x = null;
                    e0Var.f229719y = null;
                }
                arrayList.clear();
                i14.d0 d0Var = new i14.d0(f15);
                r2Var.onCreateMMMenu(d0Var);
                if (d0Var.v()) {
                    Log.w("MicroMsg.MMSubMenuHelper", "show, menu empty");
                    return;
                }
                nVar.f281245i = r2Var;
                nVar.f281259q = s2Var;
                nVar.f281235d = null;
                nVar.E = null;
                nVar.q();
                return;
            }
            ((qu.c) yz3.j.c(qu.c.class)).wN().c(groupToolsComponet.f178869d.f(), LiveConfig.a(groupToolsComponet.f178869d.r(), 2));
        }
    }

    public static void k6(GroupToolsComponet groupToolsComponet, GroupToolItem groupToolItem, String str, boolean z15) {
        groupToolsComponet.getClass();
        o oVar = new o();
        oVar.f277591a = groupToolItem.f73089d;
        if (z15) {
            oVar.f277596f = groupToolItem.f73090e;
        } else {
            oVar.f277596f = "";
        }
        oVar.f277601k = jr0.a.CTRL_INDEX;
        oVar.f277610t = groupToolsComponet.f178869d.r();
        oVar.f277602l = str;
        ((d1) yz3.j.c(d1.class)).r80(groupToolsComponet.f178869d.f(), oVar);
    }

    public static void l6(GroupToolsComponet groupToolsComponet, GroupToolItem groupToolItem, boolean z15) {
        String str;
        int i15;
        groupToolsComponet.getClass();
        if (Util.isEqual(groupToolItem.f73089d, "roomaa@app.origin")) {
            str = MMApplicationContext.getContext().getString(R.string.ftd);
        } else if (Util.isEqual(groupToolItem.f73089d, "roomlive@app.origin")) {
            str = MMApplicationContext.getContext().getString(R.string.f367448ty);
        } else {
            WxaAttributes e35 = ((c1) yz3.j.c(c1.class)).e3(groupToolItem.f73089d);
            if (e35 == null) {
                str = "";
            } else {
                str = e35.field_nickname;
            }
        }
        String r15 = groupToolsComponet.f178869d.r();
        String str2 = groupToolItem.f73089d;
        if (w0.P(r15)) {
            i15 = 2;
        } else {
            i15 = w0.R(r15) ? 1 : 0;
        }
        ChatRoomToolPanelOperateLogStruct chatRoomToolPanelOperateLogStruct = new ChatRoomToolPanelOperateLogStruct();
        chatRoomToolPanelOperateLogStruct.f65901d = chatRoomToolPanelOperateLogStruct.b("roomusrname", r15, true);
        chatRoomToolPanelOperateLogStruct.f65902e = 2;
        chatRoomToolPanelOperateLogStruct.f65905h = (long) i15;
        chatRoomToolPanelOperateLogStruct.f65906i = chatRoomToolPanelOperateLogStruct.b("appid", str2, true);
        chatRoomToolPanelOperateLogStruct.f65907j = chatRoomToolPanelOperateLogStruct.b("appname", str, true);
        chatRoomToolPanelOperateLogStruct.f65908k = z15 ? 1 : 0;
        chatRoomToolPanelOperateLogStruct.n();
    }

    @Override // mj.k, com.tencent.mm.ui.chatting.component.a
    public void E5() {
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "onChattingExitAnimStart");
        this.D.dead();
    }

    @Override // com.tencent.mm.ui.chatting.component.z2, com.tencent.mm.ui.chatting.component.a
    public void K() {
        super.K();
        View view = this.f178695e;
        if (view != null) {
            k30.a aVar = new k30.a();
            ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
            aVar.c(8);
            j30.a.d(view, aVar.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "reset", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
            view.setVisibility(((Integer) aVar.a(0)).intValue());
            j30.a.e(view, "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "reset", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
        }
    }

    @Override // u14.b0
    public void M1() {
        m6(true);
    }

    @Override // mj.k, com.tencent.mm.ui.chatting.component.a
    public void T4() {
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "onChattingEnterAnimStart: user %s hashCode:%s", this.f178869d.r(), Integer.valueOf(hashCode()));
    }

    @Override // mj.k, com.tencent.mm.ui.chatting.component.a
    public void m5() {
        String r15 = this.f178869d.r();
        if (Util.isNullOrNil(r15)) {
            this.A = false;
        } else if (!z1.U5(r15) || !w0.R(r15)) {
            this.A = false;
        } else {
            this.A = true;
        }
    }

    public final void m6(boolean z15) {
        hj.e Ga = ((ej.d) yz3.j.c(ej.d.class)).YN0().Ga(this.f178869d.r());
        this.f178712y = Ga;
        if (Ga == null) {
            hj.e eVar = new hj.e();
            eVar.field_chatroomname = this.f178869d.r();
            boolean Sa = ((ej.d) yz3.j.c(ej.d.class)).YN0().insert(eVar);
            if (Sa) {
                this.f178712y = ((ej.d) yz3.j.c(ej.d.class)).YN0().Ga(this.f178869d.r());
            }
            Log.i("MicroMsg.roomtools.GroupToolsComponet", "getGroupTools insert GroupTools: result(%s)", Boolean.valueOf(Sa));
        }
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "getGroupTools start:%s queryRecentUse:%s state:%s", this.f178869d.r(), Boolean.valueOf(z15), Integer.valueOf(this.f178712y.field_queryState));
        if (!z15) {
            return;
        }
        if (this.f178712y.field_queryState == 1) {
            this.f178713z.clear();
            this.f178713z.addAll(this.f178712y.f226664u);
            Collections.sort(this.f178713z, new a(this));
            n6();
            return;
        }
        MMHandlerThread.postToMainThreadDelayed(new b(), FocusMeteringAction.DEFAULT_AUTOCANCEL_DURATION);
        Thread thread = new Thread(this.F);
        this.f178711x = thread;
        thread.start();
        MMHandlerThread.postToMainThreadDelayed(new c(), 200);
    }

    /* JADX WARNING: Removed duplicated region for block: B:11:0x00fb  */
    /* JADX WARNING: Removed duplicated region for block: B:12:0x0102  */
    /* JADX WARNING: Removed duplicated region for block: B:15:0x0110  */
    /* JADX WARNING: Removed duplicated region for block: B:16:0x0117  */
    /* JADX WARNING: Removed duplicated region for block: B:23:0x01d1  */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x01de  */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x01ec  */
    /* JADX WARNING: Removed duplicated region for block: B:29:0x02cd  */
    /* JADX WARNING: Removed duplicated region for block: B:30:0x02e0  */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x02e7  */
    /* JADX WARNING: Removed duplicated region for block: B:60:0x0382  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x03a0 A[LOOP:0: B:62:0x0397->B:64:0x03a0, LOOP_END] */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x03c0 A[LOOP:1: B:66:0x03ba->B:68:0x03c0, LOOP_END] */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x03d9  */
    /* JADX WARNING: Removed duplicated region for block: B:72:0x03db  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x03f5  */
    /* JADX WARNING: Removed duplicated region for block: B:76:0x03f7  */
    public final void n6() {
        boolean z15;
        boolean z16;
        int i15;
        int i16;
        com.tencent.mm.ui.chatting.view.e eVar;
        NestedScrollView nestedScrollView;
        Iterator<GroupToolItem> it;
        Iterator<GroupToolItem> it4;
        String r15;
        hj.e eVar2;
        int i17;
        View inflate = this.f178869d.f().getLayoutInflater().inflate(R.layout.f365848tk, (ViewGroup) null);
        this.f178695e = inflate;
        this.f178697g = (NestedScrollView) inflate.findViewById(R.id.m7u);
        this.f178704q = (RelativeLayout) this.f178695e.findViewById(R.id.gv5);
        this.f178696f = (LinearLayout) this.f178695e.findViewById(R.id.gv6);
        this.f178698h = (LinearLayout) this.f178695e.findViewById(R.id.gva);
        this.f178699i = (LinearLayout) this.f178695e.findViewById(R.id.gvb);
        this.f178700j = (RecyclerView) this.f178695e.findViewById(R.id.gvc);
        this.f178701n = (LinearLayout) this.f178695e.findViewById(R.id.gv8);
        this.f178702o = (LinearLayout) this.f178695e.findViewById(R.id.gv9);
        this.f178703p = (RecyclerView) this.f178695e.findViewById(R.id.gv_);
        this.f178705r = (ImageView) this.f178695e.findViewById(R.id.gv7);
        this.f178706s = this.f178695e.findViewById(R.id.f363550gv3);
        this.f178704q.setOnClickListener(new t2(this));
        this.f178699i.setOnClickListener(this.E);
        this.f178702o.setOnClickListener(this.E);
        int i18 = 0;
        if (this.A) {
            if (this.f178712y.f226663t.size() > 0) {
                this.f178699i.setVisibility(0);
                this.f178702o.setVisibility(8);
            } else if (this.f178713z.size() > 0) {
                this.f178699i.setVisibility(8);
                this.f178702o.setVisibility(0);
            }
            if (this.f178712y.f226663t.size() <= 0) {
                this.f178698h.setVisibility(0);
                z15 = true;
            } else {
                this.f178698h.setVisibility(8);
                z15 = false;
            }
            if (this.f178713z.size() <= 0) {
                this.f178701n.setVisibility(0);
                z16 = true;
            } else {
                this.f178701n.setVisibility(8);
                z16 = false;
            }
            if (!z16 || z15) {
                this.f178696f.setVisibility(8);
                View view = this.f178706s;
                k30.a aVar = new k30.a();
                ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
                aVar.c(0);
                j30.a.d(view, aVar.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                view.setVisibility(((Integer) aVar.a(0)).intValue());
                j30.a.e(view, "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
            } else {
                this.f178696f.setVisibility(0);
                View view2 = this.f178706s;
                k30.a aVar2 = new k30.a();
                ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a;
                aVar2.c(8);
                j30.a.d(view2, aVar2.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
                view2.setVisibility(((Integer) aVar2.a(0)).intValue());
                j30.a.e(view2, "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
            }
            RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f178697g.getLayoutParams();
            i15 = layoutParams.height;
            if (this.f178712y.f226663t.size() + this.f178713z.size() <= 8) {
                i16 = gy3.a.b(this.f178869d.f(), 344);
            } else {
                i16 = gy3.a.b(this.f178869d.f(), CdnLogic.kGroupNoticeCDNAppType);
            }
            if (i15 != i16) {
                layoutParams.height = i16;
                this.f178697g.setLayoutParams(layoutParams);
            }
            this.f178705r.setVisibility(8);
            this.f178700j.setLayoutManager(new GridLayoutManager(this.f178869d.f(), 4));
            this.f178700j.setNestedScrollingEnabled(false);
            this.f178703p.setLayoutManager(new GridLayoutManager(this.f178869d.f(), 4));
            this.f178703p.setNestedScrollingEnabled(false);
            int f15 = ((v3.a(this.f178869d.f()).f187059a - (gy3.a.f(this.f178869d.f(), R.dimen.f359099db) * 2)) - (gy3.a.f(this.f178869d.f(), R.dimen.f359112dn) * 4)) / 12;
            m mVar = new m(this.f178869d.f(), this.f178712y.f226663t, this.B);
            this.f178709v = mVar;
            this.f178700j.setAdapter(mVar);
            this.f178700j.j0(new l(f15, 4));
            this.f178709v.notifyDataSetChanged();
            m mVar2 = new m(this.f178869d.f(), this.f178713z, this.C);
            this.f178710w = mVar2;
            this.f178703p.setAdapter(mVar2);
            this.f178703p.j0(new l(f15, 4));
            this.f178710w.notifyDataSetChanged();
            this.f178697g.setOnScrollChangeListener(new u2(this));
            this.f178697g.setFocusable(false);
            eVar = new com.tencent.mm.ui.chatting.view.e(this.f178869d.f(), this.f178695e);
            this.f178707t = eVar;
            eVar.f181184d = new h();
            eVar.f181188h = eVar.a();
            Context context = eVar.f181186f;
            eVar.f181189i = !(context instanceof Activity) ? ((Activity) context).getWindow().getWindowManager().getDefaultDisplay().getRotation() : 0;
            if (eVar.f181185e != null) {
                FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) eVar.f181187g.getLayoutParams();
                if (eVar.f181188h && eVar.f181190j != null) {
                    Rect rect = new Rect();
                    eVar.f181190j.getWindowVisibleDisplayFrame(rect);
                    layoutParams2.width = rect.right;
                }
                eVar.f181187g.setLayoutParams(layoutParams2);
                eVar.f181185e.getWindow().addFlags(Integer.MIN_VALUE);
                eVar.f181185e.getWindow().clearFlags(8);
                eVar.f181185e.getWindow().clearFlags(131072);
                eVar.f181185e.getWindow().clearFlags(128);
                eVar.f181185e.getWindow().getDecorView().setSystemUiVisibility(0);
                BottomSheetBehavior bottomSheetBehavior = eVar.f181191n;
                if (bottomSheetBehavior != null) {
                    bottomSheetBehavior.f51417p = false;
                }
                if (eVar.f181184d != null) {
                    eVar.f181185e.setOnDismissListener(new com.tencent.mm.ui.chatting.view.d(eVar));
                }
                View view3 = eVar.f181190j;
                if (view3 != null) {
                    boolean z17 = eVar.f181192o == null;
                    ViewTreeObserver viewTreeObserver = view3.getViewTreeObserver();
                    eVar.f181192o = viewTreeObserver;
                    if (z17) {
                        viewTreeObserver.addOnGlobalLayoutListener(eVar);
                    }
                }
                Context context2 = eVar.f181186f;
                if ((context2 instanceof Activity) && !((Activity) context2).isFinishing()) {
                    eVar.f181185e.show();
                }
            }
            nestedScrollView = this.f178697g;
            if (nestedScrollView != null) {
                nestedScrollView.post(new i());
            }
            StringBuilder sb5 = new StringBuilder();
            it = this.f178712y.f226663t.iterator();
            while (it.hasNext()) {
                sb5.append(it.next().f73089d);
                sb5.append("|");
            }
            StringBuilder sb6 = new StringBuilder();
            it4 = this.f178713z.iterator();
            while (it4.hasNext()) {
                sb6.append(it4.next().f73089d);
                sb6.append("|");
            }
            r15 = this.f178869d.r();
            eVar2 = this.f178712y;
            if (eVar2 != null) {
                i17 = 0;
            } else {
                i17 = eVar2.f226663t.size();
            }
            int size = this.f178713z.size();
            String sb7 = sb5.toString();
            String sb8 = sb6.toString();
            if (!w0.P(r15)) {
                i18 = 2;
            } else if (w0.R(r15)) {
                i18 = 1;
            }
            ChatRoomToolPanelOperateLogStruct chatRoomToolPanelOperateLogStruct = new ChatRoomToolPanelOperateLogStruct();
            chatRoomToolPanelOperateLogStruct.f65901d = chatRoomToolPanelOperateLogStruct.b("roomusrname", r15, true);
            chatRoomToolPanelOperateLogStruct.f65902e = 2;
            chatRoomToolPanelOperateLogStruct.f65903f = (long) i17;
            chatRoomToolPanelOperateLogStruct.f65904g = (long) size;
            chatRoomToolPanelOperateLogStruct.f65905h = (long) i18;
            chatRoomToolPanelOperateLogStruct.f65909l = chatRoomToolPanelOperateLogStruct.b("topAppList", sb7, true);
            chatRoomToolPanelOperateLogStruct.f65910m = chatRoomToolPanelOperateLogStruct.b("usedAppList", sb8, true);
            chatRoomToolPanelOperateLogStruct.n();
        }
        this.f178699i.setVisibility(8);
        this.f178702o.setVisibility(8);
        if (this.f178712y.f226663t.size() <= 0) {
        }
        if (this.f178713z.size() <= 0) {
        }
        if (!z16) {
        }
        this.f178696f.setVisibility(8);
        View view4 = this.f178706s;
        k30.a aVar3 = new k30.a();
        ThreadLocal<k30.a> threadLocal3 = k30.c.f244265a;
        aVar3.c(0);
        j30.a.d(view4, aVar3.b(), "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
        view4.setVisibility(((Integer) aVar3.a(0)).intValue());
        j30.a.e(view4, "com/tencent/mm/ui/chatting/component/GroupToolsComponet", "refreshRcViewVisible", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V");
        RelativeLayout.LayoutParams layoutParams3 = (RelativeLayout.LayoutParams) this.f178697g.getLayoutParams();
        i15 = layoutParams3.height;
        if (this.f178712y.f226663t.size() + this.f178713z.size() <= 8) {
        }
        if (i15 != i16) {
        }
        this.f178705r.setVisibility(8);
        this.f178700j.setLayoutManager(new GridLayoutManager(this.f178869d.f(), 4));
        this.f178700j.setNestedScrollingEnabled(false);
        this.f178703p.setLayoutManager(new GridLayoutManager(this.f178869d.f(), 4));
        this.f178703p.setNestedScrollingEnabled(false);
        int f152 = ((v3.a(this.f178869d.f()).f187059a - (gy3.a.f(this.f178869d.f(), R.dimen.f359099db) * 2)) - (gy3.a.f(this.f178869d.f(), R.dimen.f359112dn) * 4)) / 12;
        m mVar3 = new m(this.f178869d.f(), this.f178712y.f226663t, this.B);
        this.f178709v = mVar3;
        this.f178700j.setAdapter(mVar3);
        this.f178700j.j0(new l(f152, 4));
        this.f178709v.notifyDataSetChanged();
        m mVar22 = new m(this.f178869d.f(), this.f178713z, this.C);
        this.f178710w = mVar22;
        this.f178703p.setAdapter(mVar22);
        this.f178703p.j0(new l(f152, 4));
        this.f178710w.notifyDataSetChanged();
        this.f178697g.setOnScrollChangeListener(new u2(this));
        this.f178697g.setFocusable(false);
        eVar = new com.tencent.mm.ui.chatting.view.e(this.f178869d.f(), this.f178695e);
        this.f178707t = eVar;
        eVar.f181184d = new h();
        eVar.f181188h = eVar.a();
        Context context3 = eVar.f181186f;
        eVar.f181189i = !(context3 instanceof Activity) ? ((Activity) context3).getWindow().getWindowManager().getDefaultDisplay().getRotation() : 0;
        if (eVar.f181185e != null) {
        }
        nestedScrollView = this.f178697g;
        if (nestedScrollView != null) {
        }
        StringBuilder sb52 = new StringBuilder();
        it = this.f178712y.f226663t.iterator();
        while (it.hasNext()) {
        }
        StringBuilder sb62 = new StringBuilder();
        it4 = this.f178713z.iterator();
        while (it4.hasNext()) {
        }
        r15 = this.f178869d.r();
        eVar2 = this.f178712y;
        if (eVar2 != null) {
        }
        int size2 = this.f178713z.size();
        String sb72 = sb52.toString();
        String sb82 = sb62.toString();
        if (!w0.P(r15)) {
        }
        ChatRoomToolPanelOperateLogStruct chatRoomToolPanelOperateLogStruct2 = new ChatRoomToolPanelOperateLogStruct();
        chatRoomToolPanelOperateLogStruct2.f65901d = chatRoomToolPanelOperateLogStruct2.b("roomusrname", r15, true);
        chatRoomToolPanelOperateLogStruct2.f65902e = 2;
        chatRoomToolPanelOperateLogStruct2.f65903f = (long) i17;
        chatRoomToolPanelOperateLogStruct2.f65904g = (long) size2;
        chatRoomToolPanelOperateLogStruct2.f65905h = (long) i18;
        chatRoomToolPanelOperateLogStruct2.f65909l = chatRoomToolPanelOperateLogStruct2.b("topAppList", sb72, true);
        chatRoomToolPanelOperateLogStruct2.f65910m = chatRoomToolPanelOperateLogStruct2.b("usedAppList", sb82, true);
        chatRoomToolPanelOperateLogStruct2.n();
    }

    @Override // mj.k, com.tencent.mm.ui.chatting.component.a
    public void t4() {
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "onChattingResume");
        this.D.dead();
    }

    @Override // mj.k, com.tencent.mm.ui.chatting.component.a
    public void x4() {
        Log.i("MicroMsg.roomtools.GroupToolsComponet", "onChattingPause");
    }
}