package com.scb.phone.view.fragment.profilemanagement; import android.app.ActivityOptions; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import com.google.android.gms.internal.common.zzd; import com.scb.phone.R; import com.scb.phone.view.activity.profilemanagement.ProfileManagementActivity; import com.scb.phone.view.adapter.profilemanagement.LanguageSettingAdapter; import o.C7787cus; import o.C8761dV; import o.InterfaceC12878fJv; import o.InterfaceC13391fZD; import o.InterfaceC8970dar; import o.lmG; /* loaded from: classes5.dex */ public class LanguageSettingFragment extends Hilt_LanguageSettingFragment implements InterfaceC8970dar.LWm { private InterfaceC12878fJv c; @InterfaceC13391fZD public C7787cus languageSettingPresenter; @BindView RecyclerView mRecyclerView; @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(R.layout.2131559743, viewGroup, false); ButterKnife.c(this, inflate); this.languageSettingPresenter.e((C7787cus) this); getContext(); this.mRecyclerView.setLayoutManager(new LinearLayoutManager(1, false)); this.mRecyclerView.setNestedScrollingEnabled(false); this.mRecyclerView.setAdapter(new LanguageSettingAdapter(this.languageSettingPresenter.b.f(), this.languageSettingPresenter.d.d.M(), this)); return inflate; } /* JADX WARN: Multi-variable type inference failed */ @Override // com.scb.phone.view.fragment.profilemanagement.Hilt_LanguageSettingFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment public void onAttach(Context context) { super.onAttach(context); if (context instanceof InterfaceC12878fJv) { this.c = (InterfaceC12878fJv) context; } } @Override // o.InterfaceC8970dar.LWm public final void c(String str) { if (this.c == null || getActivity() == null) { return; } this.c.e(str); ActivityOptions makeCustomAnimation = ActivityOptions.makeCustomAnimation(getActivity(), R.anim.f152130771980, R.anim.f162130771981); Intent akW_ = ProfileManagementActivity.akW_(getActivity()); akW_.addFlags(zzd.zza); startActivity(akW_, makeCustomAnimation.toBundle()); getActivity().finish(); } @Override // o.InterfaceC8970dar.LWm public final void d(String str) { C7787cus c7787cus = this.languageSettingPresenter; if (c7787cus.f != 0) { c7787cus.f.y(); } C8761dV c8761dV = new C8761dV(str); c7787cus.d.d.K().n = str != null ? str.toLowerCase() : ""; c7787cus.d.c(c8761dV); lmG lmg = c7787cus.d; lmg.d(lmg.i, new C7787cus.Sts(c7787cus, str)); } }