what-the-bank/sources/com/scb/phone/view/fragment/hml/HmlAboutFragment.java

45 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.hml;
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.scb.phone.R;
import com.scb.phone.view.adapter.hml.HmlAboutAdapter;
import java.util.ArrayList;
import java.util.List;
import o.MU;
/* loaded from: classes5.dex */
public class HmlAboutFragment extends Hilt_HmlAboutFragment {
@BindView
RecyclerView recycler;
public static HmlAboutFragment e(List<MU> list) {
HmlAboutFragment hmlAboutFragment = new HmlAboutFragment();
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("HML_ABOUT_EXTRA", new ArrayList<>(list));
hmlAboutFragment.setArguments(bundle);
return hmlAboutFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
ArrayList parcelableArrayList;
View inflate = layoutInflater.inflate(R.layout.2131559686, (ViewGroup) null, false);
ButterKnife.c(this, inflate);
if (getArguments() != null && (parcelableArrayList = getArguments().getParcelableArrayList("HML_ABOUT_EXTRA")) != null) {
RecyclerView recyclerView = this.recycler;
getContext();
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
this.recycler.setAdapter(new HmlAboutAdapter(parcelableArrayList));
}
return inflate;
}
}