package s80; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.view.ViewStub; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.recyclerview.widget.RecyclerView; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.shizhuang.duapp.R; import com.shizhuang.duapp.libs.statemanager.ProgressWheel; import com.shizhuang.duapp.modules.du_trend_details.column.fragement.ForumPostDetailsFragment; import fi.b; import io.reactivex.disposables.Disposable; import java.util.HashMap; import kotlinx.android.extensions.LayoutContainer; import mn.a; import org.jetbrains.annotations.NotNull; /* compiled from: FormPostDetailsController.kt */ public final class d implements LayoutContainer { public static ChangeQuickRedirect changeQuickRedirect; @NotNull public final Context b = getContainerView().getContext(); /* renamed from: c reason: collision with root package name */ public int f38055c; public View d; public View e; public Disposable f; @NotNull /* renamed from: g reason: collision with root package name */ public final View f38056g; /* renamed from: h reason: collision with root package name */ public final ForumPostDetailsFragment f38057h; public HashMap i; public d(@NotNull View view, @NotNull ForumPostDetailsFragment forumPostDetailsFragment) { this.f38056g = view; this.f38057h = forumPostDetailsFragment; a.f35714a.g("https://apk.poizon.com/duApp/Android_Config/Assets/resouces/du_trend_double_click_like.webp").G(forumPostDetailsFragment).y(); b((ConstraintLayout) a(R.id.clTop)); b((RecyclerView) a(R.id.recyclerView)); b((ViewStub) getContainerView().findViewById(R.id.viewStubLikeGuide)); b((ViewStub) getContainerView().findViewById(R.id.viewStubNoNetwork)); b((ProgressWheel) a(R.id.plLoading)); } public View a(int i3) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 134947, new Class[]{Integer.TYPE}, View.class); if (proxy.isSupported) { return (View) proxy.result; } if (this.i == null) { this.i = new HashMap(); } View view = (View) this.i.get(Integer.valueOf(i3)); if (view != null) { return view; } View containerView = getContainerView(); if (containerView == null) { return null; } View findViewById = containerView.findViewById(i3); this.i.put(Integer.valueOf(i3), findViewById); return findViewById; } public final void b(View view) { if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 134938, new Class[]{View.class}, Void.TYPE).isSupported) { ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); marginLayoutParams.topMargin = b.j(this.b) + marginLayoutParams.topMargin; } } @Override // kotlinx.android.extensions.LayoutContainer @NotNull public View getContainerView() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 134946, new Class[0], View.class); return proxy.isSupported ? (View) proxy.result : this.f38056g; } }