128 lines
4.4 KiB
Java
128 lines
4.4 KiB
Java
|
package com.scb.phone.view.fragment.investment;
|
||
|
|
||
|
import android.content.DialogInterface;
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import butterknife.BindView;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.investment.schedule.SetupScheduleActivity;
|
||
|
import com.scb.phone.view.custom.common.CustomDialog;
|
||
|
import com.scb.phone.view.custom.common.CustomScheduleView;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import com.scb.phone.view.fragment.investment.BaseScheduleFragment;
|
||
|
import o.AbstractC5728byY;
|
||
|
import o.C11560ehe;
|
||
|
import o.C16060koA;
|
||
|
import o.C5333br;
|
||
|
import o.InterfaceC0834Plv;
|
||
|
import o.InterfaceC12851fIz;
|
||
|
import o.InterfaceC8937daK;
|
||
|
import o.OU;
|
||
|
import o.Vlw;
|
||
|
import o.gjJ;
|
||
|
import o.huo;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public abstract class BaseScheduleFragment<P extends AbstractC5728byY> extends BaseFragment implements InterfaceC12851fIz, InterfaceC8937daK {
|
||
|
private huo<Intent> c;
|
||
|
|
||
|
@BindView
|
||
|
CustomScheduleView customScheduleView;
|
||
|
private P d;
|
||
|
private C16060koA i = new C16060koA();
|
||
|
|
||
|
protected abstract String l();
|
||
|
|
||
|
protected abstract P m();
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
|
||
|
this.d = m();
|
||
|
this.customScheduleView.setOnEditClickListener(this);
|
||
|
this.customScheduleView.d();
|
||
|
this.c = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.ffE
|
||
|
private BaseScheduleFragment b;
|
||
|
|
||
|
@Override // o.InterfaceC0834Plv
|
||
|
public final void d(Object obj) {
|
||
|
BaseScheduleFragment.e(this.b, (Heg) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = this;
|
||
|
}
|
||
|
});
|
||
|
this.i.b = l();
|
||
|
return onCreateView;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8937daK
|
||
|
public final void a(String str, String str2) {
|
||
|
this.customScheduleView.setScheduleView(str, str2);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8937daK
|
||
|
public final void k() {
|
||
|
this.customScheduleView.d();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8937daK
|
||
|
public final void b(OU ou) {
|
||
|
this.c.d(SetupScheduleActivity.ahN_(getContext(), ou), null);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
this.d.w_();
|
||
|
this.c.e();
|
||
|
super.onDestroy();
|
||
|
}
|
||
|
|
||
|
public final void aup_(String str, String str2, int i, DialogInterface.OnClickListener onClickListener) {
|
||
|
CustomDialog b = CustomDialog.b(getContext());
|
||
|
if (gjJ.a(str)) {
|
||
|
b.mTitleTextView.setVisibility(0);
|
||
|
b.mTitleTextView.setText(str);
|
||
|
}
|
||
|
if (gjJ.a(str2)) {
|
||
|
b.mTextTextView.setVisibility(0);
|
||
|
b.mTextTextView.setText(str2);
|
||
|
}
|
||
|
((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(i, onClickListener), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.ffD
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i2) {
|
||
|
dialogInterface.dismiss();
|
||
|
}
|
||
|
}})).show();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:23:0x008a */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:48:0x00d7 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static /* synthetic */ void e(com.scb.phone.view.fragment.investment.BaseScheduleFragment r8, o.Heg r9) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 221
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.BaseScheduleFragment.e(com.scb.phone.view.fragment.investment.BaseScheduleFragment, o.Heg):void");
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12851fIz
|
||
|
public final void r() {
|
||
|
P p = this.d;
|
||
|
if (p.f != 0) {
|
||
|
p.f.y();
|
||
|
}
|
||
|
p.a.b(new C5333br(p.d()));
|
||
|
Vlw vlw = p.a;
|
||
|
vlw.d(vlw.i, new AbstractC5728byY.RVV(p));
|
||
|
}
|
||
|
}
|