what-the-bank/sources/com/scb/phone/view/fragment/sme/gifting/GiftSharingMomentPreviewFra...

57 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.sme.gifting;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.squareup.picasso.Picasso;
import o.C10457eEr;
import o.C13020fOa;
import o.WN;
import o.nMh;
/* loaded from: classes5.dex */
public class GiftSharingMomentPreviewFragment extends Hilt_GiftSharingMomentPreviewFragment {
@BindView
ImageView previewImg;
@BindView
TextView previewMsg;
public static GiftSharingMomentPreviewFragment d(WN wn) {
Bundle bundle = new Bundle();
bundle.putParcelable("GIFT_SHARING_MOMENT_PREVIEW", wn);
GiftSharingMomentPreviewFragment giftSharingMomentPreviewFragment = new GiftSharingMomentPreviewFragment();
giftSharingMomentPreviewFragment.setArguments(bundle);
return giftSharingMomentPreviewFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559919, viewGroup, false);
ButterKnife.c(this, inflate);
if (getArguments() != null && getArguments().containsKey("GIFT_SHARING_MOMENT_PREVIEW")) {
WN wn = (WN) getArguments().get("GIFT_SHARING_MOMENT_PREVIEW");
C13020fOa e = Picasso.d().e(wn.c);
e.e = true;
e.aBu_(this.previewImg, null);
this.previewMsg.setText(wn.f);
this.previewMsg.setTextColor(nMh.getColor(getActivity(), wn.d));
}
return inflate;
}
@OnClick
public void closeFragment() {
C10457eEr.aqd_(this, new Intent("com.scb.phone/BROADCAST_CLOSE_SHARING_MOMENT_GIFT_PREVIEW"));
}
}