得物.apk(点击下载) / CommentDissView.java


package com.shizhuang.duapp.modules.du_community_common.view;

import a.f;
import android.content.Context;
import android.util.AttributeSet;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.modules.du_community_common.manager.LikeIconResManager;
import com.shizhuang.duapp.modules.du_community_common.model.ReplyDissIcon;
import com.shizhuang.duapp.modules.router.ServiceManager;
import df.b0;
import df.c;
import df.q;
import kotlin.Metadata;
import kotlin.jvm.JvmOverloads;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import t20.l;
import tr.b;

@Metadata(bv = {}, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u001d\b\u0007\u0012\u0006\u0010\t\u001a\u00020\b\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\n¢\u0006\u0004\b\f\u0010\rR\"\u0010\u0003\u001a\u00020\u00028\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0003\u0010\u0005\"\u0004\b\u0006\u0010\u0007¨\u0006\u000e"}, d2 = {"Lcom/shizhuang/duapp/modules/du_community_common/view/CommentDissView;", "Lcom/shizhuang/duapp/modules/du_community_common/view/CommAnimImgTextView;", "", "isSolute", "Z", "()Z", "setSolute", "(Z)V", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "du_community_common_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: CommentDissView.kt */
public final class CommentDissView extends CommAnimImgTextView {
    public static ChangeQuickRedirect changeQuickRedirect;
    public final String H;

    @JvmOverloads
    public CommentDissView(@NotNull Context context) {
        this(context, null);
    }

    public final void h(boolean z) {
        String str;
        Object[] objArr = {new Byte(z ? (byte) 1 : 0)};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Boolean.TYPE;
        if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 109404, new Class[]{cls}, Void.TYPE).isSupported) {
            setSelected(z);
            if (!z) {
                f();
                return;
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 109405, new Class[0], Void.TYPE).isSupported) {
                StringBuilder h12 = f.h("key_comment_diss_first_salute_");
                h12.append(c.h(getContext()));
                h12.append('_');
                h12.append(ServiceManager.d().getUserId());
                String sb2 = h12.toString();
                if (((Boolean) b0.f(sb2, Boolean.TRUE)).booleanValue()) {
                    Context context = getContext();
                    PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer((int) R.string.du_trend_comment_diss_first_salute_toast), context}, null, l.changeQuickRedirect, true, 100131, new Class[]{Integer.TYPE, Context.class}, String.class);
                    if (proxy.isSupported) {
                        str = (String) proxy.result;
                    } else {
                        str = context.getString(R.string.du_trend_comment_diss_first_salute_toast);
                    }
                    q.s(str, PushConstants.WORK_RECEIVER_EVENT_CORE_ERROR);
                    b0.l(sb2, Boolean.FALSE);
                }
            }
            boolean isSelected = isSelected();
            if (!PatchProxy.proxy(new Object[]{new Byte(isSelected ? (byte) 1 : 0)}, this, CommAnimImgTextView.changeQuickRedirect, false, 109378, new Class[]{cls}, Void.TYPE).isSupported) {
                if (isSelected) {
                    if (!PatchProxy.proxy(new Object[0], this, CommAnimImgTextView.changeQuickRedirect, false, 109379, new Class[0], Void.TYPE).isSupported) {
                        e(this.l, this.j, this.G);
                    }
                } else if (!PatchProxy.proxy(new Object[0], this, CommAnimImgTextView.changeQuickRedirect, false, 109380, new Class[0], Void.TYPE).isSupported) {
                    e(this.m, this.k, this.G);
                }
            }
        }
    }

    public final void setSolute(boolean z) {
        boolean z4 = PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 109401, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    @JvmOverloads
    public CommentDissView(@NotNull Context context, @Nullable AttributeSet attributeSet) {
        super(context, attributeSet, 0, 4);
        boolean z = false;
        String str = "https://cdn.poizon.com/node-common/550913c9-d56d-e267-7429-a0e01891f65f.webp";
        this.H = str;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 109403, new Class[0], Void.TYPE).isSupported && b.b() != null) {
            ReplyDissIcon.Android a5 = LikeIconResManager.f.a().a();
            String str2 = null;
            String dissAe = a5 != null ? a5.getDissAe() : null;
            setImgSelectAnimUrl(!((dissAe == null || dissAe.length() == 0) ? true : z) ? dissAe : str);
            setImgUrl(a5 != null ? a5.getUnDiss() : null);
            setImgSelectUrl(a5 != null ? a5.getDiss() : str2);
        }
    }
}