272 lines
20 KiB
Java
272 lines
20 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.net.Uri;
|
||
|
import android.util.DisplayMetrics;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.view.WindowManager;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.RelativeLayout;
|
||
|
import android.widget.ScrollView;
|
||
|
import android.widget.TextView;
|
||
|
import com.scb.phone.view.custom.ThemeSlipLayout;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomCardlessWithdrawCodeItem;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Calendar;
|
||
|
import java.util.Locale;
|
||
|
|
||
|
/* renamed from: o.epV, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C11975epV {
|
||
|
private final C6204cLu e;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C11975epV(C6204cLu c6204cLu) {
|
||
|
C14957gcv.e(c6204cLu, "");
|
||
|
this.e = c6204cLu;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.epV$HBt */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(C1191Xp c1191Xp, boolean z, C11975epV c11975epV, Context context, boolean z2, InterfaceC13168fSp interfaceC13168fSp) {
|
||
|
View inflate;
|
||
|
ThemeSlipLayout themeSlipLayout;
|
||
|
Uri VO_;
|
||
|
ViewGroup viewGroup;
|
||
|
C14957gcv.e(c1191Xp, "");
|
||
|
C14957gcv.e(c11975epV, "");
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(interfaceC13168fSp, "");
|
||
|
StringBuilder sb = new StringBuilder("Cardless_");
|
||
|
sb.append(c1191Xp.h.l);
|
||
|
if (z) {
|
||
|
sb.append("_");
|
||
|
sb.append(String.valueOf(Calendar.getInstance().getTimeInMillis()));
|
||
|
}
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("TXN_%s.jpg", Arrays.copyOf(new Object[]{sb.toString()}, 1));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
Bitmap bitmap = null;
|
||
|
try {
|
||
|
try {
|
||
|
LinearLayout linearLayout = new LinearLayout(context);
|
||
|
linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
|
||
|
inflate = LayoutInflater.from(context).inflate(com.scb.phone.R.layout.2131560066, (ViewGroup) linearLayout, false);
|
||
|
themeSlipLayout = (ThemeSlipLayout) qeC.e(inflate, com.scb.phone.R.id.layout_theme_slip);
|
||
|
} catch (Exception e) {
|
||
|
e = e;
|
||
|
}
|
||
|
if (themeSlipLayout != null) {
|
||
|
IYM iym = new IYM((ScrollView) inflate, themeSlipLayout);
|
||
|
C14957gcv.c(iym, "");
|
||
|
C12713fFN c12713fFN = new C12713fFN();
|
||
|
XY xy = c1191Xp.h;
|
||
|
C14957gcv.c(xy, "");
|
||
|
C14957gcv.e(xy, "");
|
||
|
C14957gcv.e(context, "");
|
||
|
View inflate2 = LayoutInflater.from(context).inflate(com.scb.phone.R.layout.2131560067, (ViewGroup) null, false);
|
||
|
int i = com.scb.phone.R.id.cardless_amount_screenshot;
|
||
|
CustomTransferAndPayItem customTransferAndPayItem = (CustomTransferAndPayItem) qeC.e(inflate2, com.scb.phone.R.id.cardless_amount_screenshot);
|
||
|
if (customTransferAndPayItem != null) {
|
||
|
i = com.scb.phone.R.id.cardless_source_screenshot;
|
||
|
CustomTransferAndPaySource customTransferAndPaySource = (CustomTransferAndPaySource) qeC.e(inflate2, com.scb.phone.R.id.cardless_source_screenshot);
|
||
|
if (customTransferAndPaySource != null) {
|
||
|
i = com.scb.phone.R.id.cardless_successful_icon;
|
||
|
ImageView imageView = (ImageView) qeC.e(inflate2, com.scb.phone.R.id.cardless_successful_icon);
|
||
|
if (imageView != null) {
|
||
|
i = com.scb.phone.R.id.date_text_view;
|
||
|
TextView textView = (TextView) qeC.e(inflate2, com.scb.phone.R.id.date_text_view);
|
||
|
if (textView != null) {
|
||
|
i = com.scb.phone.R.id.divider_view_screenshot;
|
||
|
View e2 = qeC.e(inflate2, com.scb.phone.R.id.divider_view_screenshot);
|
||
|
if (e2 != null) {
|
||
|
i = com.scb.phone.R.id.mobile_no_screenshot;
|
||
|
CustomTransferAndPayItem customTransferAndPayItem2 = (CustomTransferAndPayItem) qeC.e(inflate2, com.scb.phone.R.id.mobile_no_screenshot);
|
||
|
if (customTransferAndPayItem2 != null) {
|
||
|
i = com.scb.phone.R.id.slip_container;
|
||
|
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate2, com.scb.phone.R.id.slip_container);
|
||
|
if (relativeLayout != null) {
|
||
|
i = com.scb.phone.R.id.successful_request_screenshot;
|
||
|
TextView textView2 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.successful_request_screenshot);
|
||
|
if (textView2 != null) {
|
||
|
i = com.scb.phone.R.id.textview_previous_withdraw_code_screenshot;
|
||
|
TextView textView3 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.textview_previous_withdraw_code_screenshot);
|
||
|
if (textView3 != null) {
|
||
|
i = com.scb.phone.R.id.textview_use_withdraw_code_screenshot;
|
||
|
TextView textView4 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.textview_use_withdraw_code_screenshot);
|
||
|
if (textView4 != null) {
|
||
|
i = com.scb.phone.R.id.withdraw_code_screenshot;
|
||
|
CustomCardlessWithdrawCodeItem customCardlessWithdrawCodeItem = (CustomCardlessWithdrawCodeItem) qeC.e(inflate2, com.scb.phone.R.id.withdraw_code_screenshot);
|
||
|
if (customCardlessWithdrawCodeItem != null) {
|
||
|
C7245cke c7245cke = new C7245cke((RelativeLayout) inflate2, customTransferAndPayItem, customTransferAndPaySource, imageView, textView, e2, customTransferAndPayItem2, relativeLayout, textView2, textView3, textView4, customCardlessWithdrawCodeItem);
|
||
|
C14957gcv.c(c7245cke, "");
|
||
|
C14957gcv.e(c7245cke, "");
|
||
|
c12713fFN.e = c7245cke;
|
||
|
C7245cke c7245cke2 = c12713fFN.e;
|
||
|
if (c7245cke2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke2 = null;
|
||
|
}
|
||
|
c7245cke2.b.setText(xy.f8445o);
|
||
|
C7245cke c7245cke3 = c12713fFN.e;
|
||
|
if (c7245cke3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke3 = null;
|
||
|
}
|
||
|
CustomTransferAndPayItem customTransferAndPayItem3 = c7245cke3.d;
|
||
|
String string = context.getString(com.scb.phone.R.string.mobile_no);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
Locale locale = Locale.getDefault();
|
||
|
C14957gcv.c(locale, "");
|
||
|
String upperCase = string.toUpperCase(locale);
|
||
|
C14957gcv.c((Object) upperCase, "");
|
||
|
customTransferAndPayItem3.setText(upperCase);
|
||
|
customTransferAndPayItem3.setValue(xy.j);
|
||
|
C7245cke c7245cke4 = c12713fFN.e;
|
||
|
if (c7245cke4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke4 = null;
|
||
|
}
|
||
|
CustomTransferAndPaySource customTransferAndPaySource2 = c7245cke4.a;
|
||
|
customTransferAndPaySource2.setSourceName(xy.a);
|
||
|
customTransferAndPaySource2.setAccountNumber(xy.d);
|
||
|
customTransferAndPaySource2.setAvatar(xy.e, com.scb.phone.R.drawable.logo_scb_new);
|
||
|
customTransferAndPaySource2.setAccountBalance(xy.i);
|
||
|
C7245cke c7245cke5 = c12713fFN.e;
|
||
|
if (c7245cke5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke5 = null;
|
||
|
}
|
||
|
CustomTransferAndPayItem customTransferAndPayItem4 = c7245cke5.e;
|
||
|
String string2 = context.getString(com.scb.phone.R.string.cardless_atm_amount);
|
||
|
C14957gcv.c((Object) string2, "");
|
||
|
Locale locale2 = Locale.getDefault();
|
||
|
C14957gcv.c(locale2, "");
|
||
|
String upperCase2 = string2.toUpperCase(locale2);
|
||
|
C14957gcv.c((Object) upperCase2, "");
|
||
|
customTransferAndPayItem4.setText(upperCase2);
|
||
|
customTransferAndPayItem4.setValue(xy.c);
|
||
|
if (xy.b != null) {
|
||
|
C1168Xb c1168Xb = xy.b;
|
||
|
customTransferAndPayItem4.amountInfo.setVisibility(0);
|
||
|
customTransferAndPayItem4.amountInfo.setValuesAligned(c1168Xb, true);
|
||
|
customTransferAndPayItem4.mBottomSpace.setVisibility(8);
|
||
|
}
|
||
|
customTransferAndPayItem4.mDividerView.setVisibility(0);
|
||
|
C7245cke c7245cke6 = c12713fFN.e;
|
||
|
if (c7245cke6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke6 = null;
|
||
|
}
|
||
|
CustomCardlessWithdrawCodeItem customCardlessWithdrawCodeItem2 = c7245cke6.g;
|
||
|
String string3 = context.getString(com.scb.phone.R.string.cardless_atm_withdraw_code);
|
||
|
C14957gcv.c((Object) string3, "");
|
||
|
Locale locale3 = Locale.getDefault();
|
||
|
C14957gcv.c(locale3, "");
|
||
|
String upperCase3 = string3.toUpperCase(locale3);
|
||
|
C14957gcv.c((Object) upperCase3, "");
|
||
|
customCardlessWithdrawCodeItem2.setText(upperCase3);
|
||
|
customCardlessWithdrawCodeItem2.setWithdrawCode(xy.h);
|
||
|
String string4 = context.getString(com.scb.phone.R.string.cardless_atm_withdraw_expire);
|
||
|
String str = xy.g;
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(string4);
|
||
|
sb2.append(str);
|
||
|
customCardlessWithdrawCodeItem2.setDateExpire(sb2.toString());
|
||
|
C7245cke c7245cke7 = c12713fFN.e;
|
||
|
if (c7245cke7 == null) {
|
||
|
C14957gcv.a("");
|
||
|
c7245cke7 = null;
|
||
|
}
|
||
|
RelativeLayout relativeLayout2 = c7245cke7.c;
|
||
|
C14957gcv.c(relativeLayout2, "");
|
||
|
RelativeLayout relativeLayout3 = relativeLayout2;
|
||
|
ThemeSlipLayout themeSlipLayout2 = iym.e;
|
||
|
if (themeSlipLayout2.c > 0 && (viewGroup = (ViewGroup) themeSlipLayout2.findViewById(com.scb.phone.R.id.slip_content)) != null) {
|
||
|
viewGroup.removeAllViews();
|
||
|
viewGroup.addView(relativeLayout3);
|
||
|
}
|
||
|
DisplayMetrics displayMetrics = new DisplayMetrics();
|
||
|
Object systemService = context.getSystemService("window");
|
||
|
C14957gcv.d(systemService, "");
|
||
|
((WindowManager) systemService).getDefaultDisplay().getMetrics(displayMetrics);
|
||
|
int i2 = displayMetrics.widthPixels;
|
||
|
int i3 = displayMetrics.widthPixels;
|
||
|
ThemeSlipLayout themeSlipLayout3 = iym.e;
|
||
|
C6204cLu c6204cLu = c11975epV.e;
|
||
|
c6204cLu.d = themeSlipLayout3;
|
||
|
c6204cLu.e();
|
||
|
Bitmap bitmap2 = C12946fLx.aAB_(iym.b, i2, i3 * 7);
|
||
|
C14957gcv.c(bitmap2, "");
|
||
|
try {
|
||
|
if (z2) {
|
||
|
VO_ = C6582cXO.VN_(bitmap2, format, context);
|
||
|
} else {
|
||
|
VO_ = C6582cXO.VO_(bitmap2, context, "screen_image.jpg");
|
||
|
}
|
||
|
if (VO_ != null) {
|
||
|
interfaceC13168fSp.e(VO_);
|
||
|
}
|
||
|
interfaceC13168fSp.c();
|
||
|
if (bitmap2 == null) {
|
||
|
return;
|
||
|
}
|
||
|
} catch (Exception e3) {
|
||
|
e = e3;
|
||
|
bitmap = bitmap2;
|
||
|
interfaceC13168fSp.c(e);
|
||
|
if (bitmap != null) {
|
||
|
bitmap2 = bitmap;
|
||
|
bitmap2.recycle();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
} catch (Throwable th) {
|
||
|
th = th;
|
||
|
bitmap = bitmap2;
|
||
|
if (bitmap != null) {
|
||
|
bitmap.recycle();
|
||
|
}
|
||
|
throw th;
|
||
|
}
|
||
|
bitmap2.recycle();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate2.getResources().getResourceName(i)));
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(com.scb.phone.R.id.layout_theme_slip)));
|
||
|
} catch (Throwable th2) {
|
||
|
th = th2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new HBt((byte) 0);
|
||
|
}
|
||
|
}
|